Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.7.1
-
None
-
3a9801d568e2f7d5a95ed4f5886a7f5062869456
Description
I am maintaining a text editor which uses QTextDocument. I have noticed that when a file contains non-breaking spaces, they are converted to normal spaces on saving.
It looks like that happens in QTextDocument::toPlainText method. However that is not mentioned in the documentation, there is no comment about it in the source code, and git blame does not help because it traces to the initial commit in the Qt 4 repository.
My question is: is this replacing still needed? And if yes, why?
Can we have some API for getting the original text without replacing?
Attachments
Issue Links
- relates to
-
QTBUG-99550 Translations in Linguist don't accept non-breaking spaces
- Open
For Gerrit Dashboard: QTBUG-57552 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
179607,3 | doc: Specify which characters are replaced by toPlainText() | 5.8 | qt/qtbase | Status: MERGED | +2 | 0 |