andstein / jessyink-hackish

fork of the launchpad "jessyink" project
3 stars 4 forks source link

text with formatted parts incorrectly displayed after commit dc6c76f7f07480a8a13bc89fc36f7d07f61ed40a #1

Open oriolpont opened 11 years ago

oriolpont commented 11 years ago

commit dc6c76f7f07480a8a13bc89fc36f7d07f61ed40a adds the following to substitute.js :

   +               texts[textCounter].textContent= texts[textCounter].textContent
   +                       .replace('\\title',slideName)
   +                       .replace('\\page',slideNumber)
   +                       .replace('\\total',numberOfSlides);

Somehow the text parsing introduced by this breaks the proper displaying of text that has formatted parts. E.g., a sentence with some words in italics or subscripts (but not if the format affects the whole block of text).

Since presentations often include highlighted words, this is an important issue. I will be investigating it for a while and I will propose a solution if I find it.

oriolpont commented 11 years ago

An obvious workaround: just remove those lines and use the mainline JessyInk for this functionality. After all, the master slide is not created very often; it is even copied from file to file (the same for the secondary master slides).