diff options
author | Andy Shaw <andy.shaw@qt.io> | 2016-06-02 13:42:00 +0200 |
---|---|---|
committer | Andy Shaw <andy.shaw@qt.io> | 2018-01-12 14:54:04 +0000 |
commit | 22fb9b7613b05a4ced3af9af041869ad5fac5263 (patch) | |
tree | a7f9a8909718dcab336ce54ca5297382df4beadb /src/qdoc/clangcodeparser.cpp | |
parent | 9f3dba2ea3978936565aa5e7893415a8a765268e (diff) | |
download | qttools-22fb9b7613b05a4ced3af9af041869ad5fac5263.tar.gz |
Ensure that Nbsp characters are preserved by escaping them
Characters that are considered spaces, but aren't just ' ' should always
be escaped so that the exact type of space that they are is preserved.
Since QTextDocument::toPlainText() will convert QChar::Nbsp to ' ', we
need to get the plain text from the handler directly and do our own
conversion where applicable to stop it from replacing the Nbsp characters.
Task-number: QTBUG-35652
Change-Id: I373edca92253ca5f978ba656c8ebbcaf77965e61
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'src/qdoc/clangcodeparser.cpp')
0 files changed, 0 insertions, 0 deletions