QScintilla/SearchReplaceWidget.py

changeset 6571
feb72cfc7807
parent 6116
f3d3c996c193
child 6573
ccac2d1f6858
--- a/QScintilla/SearchReplaceWidget.py	Thu Nov 01 11:46:06 2018 +0100
+++ b/QScintilla/SearchReplaceWidget.py	Thu Nov 01 15:42:21 2018 +0100
@@ -56,7 +56,7 @@
             self.replaceHistory = vm.getSRHistory('replace')
             self.ui = Ui_ReplaceWidget()
             whatsThis = self.tr(
-                r"""<b>Find and Replace</b>
+                """<b>Find and Replace</b>
 <p>This dialog is used to find some text and replace it with another text.
 By checking the various checkboxes, the search can be made more specific.
 The search string might be a regular expression. In a regular expression,
@@ -67,7 +67,7 @@
             from .Ui_SearchWidget import Ui_SearchWidget
             self.ui = Ui_SearchWidget()
             whatsThis = self.tr(
-                r"""<b>Find</b>
+                """<b>Find</b>
 <p>This dialog is used to find some text. By checking the various checkboxes,
 the search can be made more specific. The search string might be a regular
 expression. In a regular expression, special characters interpreted are:</p>
@@ -78,22 +78,22 @@
             self.ui.wrapCheckBox.setChecked(True)
         
         whatsThis += self.tr(
-            r"""<table border="0">
+            """<table border="0">
 <tr><td><code>.</code></td><td>Matches any character</td></tr>
-<tr><td><code>\(</code></td><td>This marks the start of a region for tagging a
+<tr><td><code>\\(</code></td><td>This marks the start of a region for tagging a
 match.</td></tr>
-<tr><td><code>\)</code></td><td>This marks the end of a tagged region.
+<tr><td><code>\\)</code></td><td>This marks the end of a tagged region.
 </td></tr>
 <tr><td><code>\\n</code></td>
 <td>Where <code>n</code> is 1 through 9 refers to the first through ninth
 tagged region when replacing. For example, if the search string was
-<code>Fred\([1-9]\)XXX</code> and the replace string was <code>Sam\1YYY</code>,
-when applied to <code>Fred2XXX</code> this would generate <code>Sam2YYY</code>.
-</td></tr>
-<tr><td><code>\&lt;</code></td>
+<code>Fred\\([1-9]\\)XXX</code> and the replace string was
+<code>Sam\\1YYY</code>, when applied to <code>Fred2XXX</code> this would
+generate <code>Sam2YYY</code>.</td></tr>
+<tr><td><code>\\&lt;</code></td>
 <td>This matches the start of a word using Scintilla's definitions of words.
 </td></tr>
-<tr><td><code>\&gt;</code></td>
+<tr><td><code>\\&gt;</code></td>
 <td>This matches the end of a word using Scintilla's definition of words.
 </td></tr>
 <tr><td><code>\\x</code></td>

eric ide

mercurial