summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qfont_p.h
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2011-06-09 10:06:00 +0200
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2011-06-10 10:09:33 +0200
commitf541c78e1bc5b293466b40e6f10496199a4a5d73 (patch)
tree2c7deec117f43d26d7ffe8c7b14cae68e8fb431b /src/gui/text/qfont_p.h
parent161fd33b199c96a92fbda4b009e85f910f73acc0 (diff)
Fix missing empty lines in Qt HTML when displayed in compliant browsers
When QTextDocument exports HTML, it makes an effort to be compatible with its own importer, hence it has to be compatible with the dialect of HTML which Qt has developed over the years. One incorrect interpretation in Qt is that an empty paragraph is interpreted as an empty line. So if you use a QTextDocument to produce HTML for text where an empty line has been added, this empty line will not be visible when the document is viewed in a compliant browser. The fix is to set the height of the empty paragraph to 1em, so that it will match the current pixel size of the font, thus look the same as a <p><br /></p> but without altering the structure of the document. Reviewed-by: Gunnar
Diffstat (limited to 'src/gui/text/qfont_p.h')
0 files changed, 0 insertions, 0 deletions