Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
4.8.6, 5.7.0
-
None
-
System: RHEL6,
Compiler: gcc 4.4.7
Qt version: 4.8.6
Description
If I set line spacing in block with QTextBlockFormat::setLineHeight(qreal, int) it takes an effect I need: distance between lines in block becomes wider or more narrow. But if I want to save it to html file (e.g. with QTextDocumentWriter) and load it again then information about line heights is not saved. According to this: http://doc.qt.io/qt-4.8/richtext-html-subset.html#block-attributes (for 4.8.6) and http://doc.qt.io/qt-5.7/richtext-html-subset.html#block-attributes (for 5.7.0) there is no block property representing distance between lines in supported HTML subset like line-height for <p>-tag (see picture below).
Linespacings are not exported to ODF format either.
Here are pictures with editing result, HTML code of saved file's body and loading result.