Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible bug in ExportToHtml.xsl respect to line breaks #93

Open
xmarti6 opened this issue Mar 6, 2018 · 2 comments
Open

Possible bug in ExportToHtml.xsl respect to line breaks #93

xmarti6 opened this issue Mar 6, 2018 · 2 comments

Comments

@xmarti6
Copy link

xmarti6 commented Mar 6, 2018

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

@xmarti6 xmarti6 changed the title Bug in ExportToHtml.xsl to respect line breaks Bug in ExportToHtml.xsl respect to line breaks Mar 6, 2018
@xmarti6 xmarti6 changed the title Bug in ExportToHtml.xsl respect to line breaks Possible bug in ExportToHtml.xsl respect to line breaks Mar 6, 2018
@davidbannon
Copy link
Member

davidbannon commented Mar 8, 2018 via email

@xmarti6
Copy link
Author

xmarti6 commented Mar 9, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants