mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-29 14:26:42 +00:00
Fixes #717 The issue was that under Windows we generate text nodes that contained CRLF as a linebreak (rather than just LF as usual). The subtle problem is that when these strings are placed in the DOM via createTextNode(), the CR character is treated as a printable character, not whitespace. When creating DOM notes with innerHTML or as part of a static HTML document the HTML parser will strip out the CR characters. The hacky solution is to manually remove CRs before building the text node.
1.3 KiB
Executable File
1.3 KiB
Executable File