summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2023-04-28 18:53:03 +0000
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2023-04-28 18:53:03 +0000
commitb4b83377f3cf468404b01085eeb3e092e0d2fb6d (patch)
tree61396585b9301e19675e965eccd7eabfd5d52850
parent822d920ef8aede410776ff9eb5cf1a7c4f2d3b1a (diff)
downloaddocutils-b4b83377f3cf468404b01085eeb3e092e0d2fb6d.tar.gz
Avoid trailing whitespace in test sample strings.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9367 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
-rw-r--r--docutils/test/test_writers/test_manpage.py54
1 files changed, 27 insertions, 27 deletions
diff --git a/docutils/test/test_writers/test_manpage.py b/docutils/test/test_writers/test_manpage.py
index 6de679931..2774d3345 100644
--- a/docutils/test/test_writers/test_manpage.py
+++ b/docutils/test/test_writers/test_manpage.py
@@ -72,10 +72,10 @@ totest['blank'] = [
["",
r""".\" Man page generated from reStructuredText.
.
-""" + indend_macros + r""".TH "" "" ""
+""" + indend_macros + """.TH "" "" ""
.SH NAME
- \-
-.\" Generated by docutils manpage writer.
+ \\- \n\
+.\\" Generated by docutils manpage writer.
.
"""],
[r"""Hello, world.
@@ -87,17 +87,17 @@ totest['blank'] = [
""",
r""".\" Man page generated from reStructuredText.
.
-""" + indend_macros + r""".TH "HELLO, WORLD." "" ""
+""" + indend_macros + """.TH "HELLO, WORLD." "" ""
.SH NAME
-Hello, world. \-
+Hello, world. \\- \n\
.sp
-\fBWARNING:\fP
+\\fBWARNING:\\fP
.INDENT 0.0
.INDENT 3.5
-This broke docutils\-sphinx.
+This broke docutils\\-sphinx.
.UNINDENT
.UNINDENT
-.\" Generated by docutils manpage writer.
+.\\" Generated by docutils manpage writer.
.
"""],
]
@@ -385,25 +385,25 @@ totest['cmdlineoptions'] = [
""",
r""".\" Man page generated from reStructuredText.
.
-""" + indend_macros + r""".TH "" "" ""
+""" + indend_macros + """.TH "" "" ""
.SH NAME
- \-
+ \\- \n\
.INDENT 0.0
.TP
.B optional arguments:
.INDENT 7.0
.TP
-.B \-h\fP,\fB \-\-help
+.B \\-h\\fP,\\fB \\-\\-help
show this help
.TP
-.BI \-\-output \ FILE\fR,\fB \ \-o \ FILE
+.BI \\-\\-output \\ FILE\\fR,\\fB \\ \\-o \\ FILE
output filename
.TP
-.BI \-i \ DEVICE\fR,\fB \ \-\-input \ DEVICE
+.BI \\-i \\ DEVICE\\fR,\\fB \\ \\-\\-input \\ DEVICE
input device
.UNINDENT
.UNINDENT
-.\" Generated by docutils manpage writer.
+.\\" Generated by docutils manpage writer.
.
"""],
]
@@ -414,13 +414,13 @@ totest['citation'] = [
""",
r""".\" Man page generated from reStructuredText.
.
-""" + indend_macros + r""".TH "" "" ""
+""" + indend_macros + """.TH "" "" ""
.SH NAME
- \-
+ \\- \n\
.IP [docutils] 5
blah blah blah
.IP [empty_citation] 5
-.\" Generated by docutils manpage writer.
+.\\" Generated by docutils manpage writer.
.
"""],
]
@@ -433,17 +433,17 @@ totest['rubric'] = [
""",
r""".\" Man page generated from reStructuredText.
.
-""" + indend_macros + r""".TH "" "" ""
+""" + indend_macros + """.TH "" "" ""
.SH NAME
- \-
+ \\- \n\
some rubric
.INDENT 0.0
-.IP \(bu 2
+.IP \\(bu 2
followed by
-.IP \(bu 2
+.IP \\(bu 2
a list
.UNINDENT
-.\" Generated by docutils manpage writer.
+.\\" Generated by docutils manpage writer.
.
"""],
]
@@ -456,17 +456,17 @@ They are "escaped" anywhere.
""",
r""".\" Man page generated from reStructuredText.
.
-""" + indend_macros + r""".TH "" "" ""
+""" + indend_macros + """.TH "" "" ""
.SH NAME
- \-
+ \\- \n\
.INDENT 0.0
.TP
-.B in \(dqdefintion list\(dq
+.B in \\(dqdefintion list\\(dq
double quotes must be escaped on macro invocations.
.UNINDENT
.sp
-They are \(dqescaped\(dq anywhere.
-.\" Generated by docutils manpage writer.
+They are \\(dqescaped\\(dq anywhere.
+.\\" Generated by docutils manpage writer.
.
"""],
]