keepnote
keepnote copied to clipboard
HTML word separation bug
What steps will reproduce the problem?
1. File -> Export Notebook -> HTML...
2. View generated HTML
3.
What is the expected output? What do you see instead?
Word seperation is often wrong. Some words are connected to each other.
For example: This is my output.
It generates: Thisismyoutput.
What version of the product are you using? On what operating system?
Kali Linux (Debian) with Version 0.7.8
Please provide any additional information below.
Original issue reported on code.google.com by [email protected] on 8 Jul 2014 at 4:01
I think the point is that the xml parser doesn't recognize the character as a space. So I temporary solved the issue adding those lines:
ftc = open(filename, "r")
lines = ftc.readlines()
ftc.close()
ftc = open(filename, 'w')
for x in lines:
ftc.write(x.replace(" ", " "))
ftc.close()
to file __init__ in the HTML export extension directory that for me is /usr/share/pyshared/keepnote/extensions/export_html at line 429 after filename = os.path.join(path, "page.html").
I know it's not a perfect nor pretty solution but it works.