tomboy-notes / tomboy

This is the legacy development for Tomboy.

Home Page:http://projects.gnome.org/tomboy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possible bug in ExportToHtml.xsl respect to line breaks

xmarti6 opened this issue · comments

I like this note-taking app very much, but I found out that when converting all notes to HTML I was not able to copy/paste HTML data into other apps like Word via clipboard (further, Word could not render the HTML file correctly; line breaks not respected). After lot of time digging into it I discovered hat by changing "#xA" charcode to "x2028" in the "softbreak" rule within "ExportToHtml.xsl" xml transform file I was able to obtain an HTML file for which when I copied notes and pasted them to Word, for instance, all style format and line breaks are preserved correctly.

Indeed, I dont know exaclty what the change in "#xA" charcode to "x2028" means, but I lighted my head up when I saw similar code in this thread "https://stackoverflow.com/questions/3309746/how-to-convert-newline-into-br-with-xslt" , and I was lucky this change made the effect I was looking for.

I just hope this can serve to improve the code if you consider this a bug.

Many thanks
Xavi

commented

Hi David,

It's a pitty, I don't have time to go into the Git/developer world, but I'm glad to know I could share this experience with you and the rest. This modification works, I can export Tomboy notes to HTML and then copy the text I want to Word respecting the entire format. If it cannot be implemented/tested is sad, but at least is written somewhere in the cloud if others need to.

Best wishes with your new Tomboy branch "ng", we will give it a try, cheers!
Xavi