Add a document builder for previews #1882
Labels
enhancement
Request: New feature or improvement
next release
Note: Features planned for next release
Milestone
As pointed out in #1858 by @zxygentoo, the HTML pathway currently used to generate content for the document viewer as well as the build tool preview is not sufficiently capable of showing all the formatting novelWriter supports. This can be bypassed by just generating a QTextDocument directly from the Tokenizer-generated data arrays.
The document itself is capable of displaying a lot more. The serialisation/deserialisation features built into the Qt library are very limited. The HTML support is very outdated as HTML4 and even there only supports a subset. Generating the formatted document using the QTextCursor object is reasonably fast, so it's good enough for the viewer, and the manuscript preview is not time critical anyway.
The text was updated successfully, but these errors were encountered: