doc: Specify which characters are replaced by toPlainText()
Some formatting characters are replaced by ASCII in the output from toPlainText(). Since this is a bit inconsistent, we should document it. Task-number: QTBUG-57552 Change-Id: I46033588d37517056a8d4668d1d16d48c72ee1b5 Reviewed-by: Lars Knoll <lars.knoll@qt.io>bb10
parent
39642fcc9e
commit
3a9801d568
|
|
@ -1148,6 +1148,11 @@ void QTextDocument::setMetaInformation(MetaInformation info, const QString &stri
|
|||
Returns the plain text contained in the document. If you want
|
||||
formatting information use a QTextCursor instead.
|
||||
|
||||
Some formatting characters are replaced by ASCII equivalents.
|
||||
In particular, no-break space (U+00A0) is replaced by a regular
|
||||
space (U+0020), and both paragraph (U+2029) and line (U+2028)
|
||||
separators are replaced by line feed (U+000A).
|
||||
|
||||
\note Embedded objects, such as images, are represented by a
|
||||
Unicode value U+FFFC (OBJECT REPLACEMENT CHARACTER).
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue