Merge pull request #17244 from geoffw0/swiftdoc2

Swift: Work around some QHelp rendering issues.
This commit is contained in:
Geoffrey White
2024-09-02 12:26:23 +01:00
committed by GitHub
3 changed files with 5 additions and 5 deletions

View File

@@ -46,7 +46,7 @@
</p>
<sample src="IncompleteHostnameRegexBad.swift"/>
<sample src="IncompleteHostnameRegexBad.swift" language=""/>
<p>
@@ -63,7 +63,7 @@
</p>
<sample src="IncompleteHostnameRegexGood.swift"/>
<sample src="IncompleteHostnameRegexGood.swift" language=""/>
</example>

View File

@@ -28,7 +28,7 @@ likely to handle corner cases correctly than a custom implementation.
The following example attempts to filters out all <code>&lt;script&gt;</code> tags.
</p>
<sample src="BadTagFilterBad.swift" />
<sample src="BadTagFilterBad.swift" language="" />
<p>
The above sanitizer does not filter out all <code>&lt;script&gt;</code> tags.

View File

@@ -3,7 +3,7 @@
<include src="ReDoSIntroduction.inc.qhelp" />
<example>
<p>Consider the following regular expression:</p>
<sample language="swift">
<sample language="">
/^_(__|.)+_$/</sample>
<p>
Its sub-expression <code>"(__|.)+"</code> can match the string
@@ -19,7 +19,7 @@
the ambiguity between the two branches of the alternative inside the
repetition:
</p>
<sample language="swift">
<sample language="">
/^_(__|[^_])+_$/</sample>
</example>
<include src="ReDoSReferences.inc.qhelp"/>