Fix qdoc warning about unknown commands

Qdoc generated warnings like the following:
qt6-changes.qdoc:771: (qdoc) warning: Unknown command '\w'
This patch correctly escapes backslashes to fix these warnings.

Task-number: QTBUG-88533
Pick-to: 6.0
Change-Id: I7849f49fd0e950c3c366cfa88b299f827b39c05a
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
This commit is contained in:
Andreas Buhr 2020-12-01 11:29:36 +01:00
parent 2885a99c32
commit 20e341d495

View File

@ -768,11 +768,11 @@
\section3 Unicode properties support \section3 Unicode properties support
When using \c QRegExp, character classes such as {\w}, {\d}, etc. match When using \c QRegExp, character classes such as \c{\w}, \c{\d}, etc. match
characters with the corresponding Unicode property: for instance, {\d} characters with the corresponding Unicode property: for instance, \c{\d}
matches any character with the Unicode Nd (decimal digit) property. Those matches any character with the Unicode Nd (decimal digit) property. Those
character classes only match ASCII characters by default. When using \l character classes only match ASCII characters by default. When using \l
QRegularExpression: for instance, {\d} matches exactly a character in the QRegularExpression: for instance, \c{\d} matches exactly a character in the
0-9 ASCII range. It is possible to change this behavior by using the \l 0-9 ASCII range. It is possible to change this behavior by using the \l
{QRegularExpression::UseUnicodePropertiesOption} {QRegularExpression::UseUnicodePropertiesOption}
pattern option. pattern option.