|
From: <gr...@us...> - 2024-10-22 16:45:29
|
Revision: 9962
http://sourceforge.net/p/docutils/code/9962
Author: grubert
Date: 2024-10-22 16:45:26 +0000 (Tue, 22 Oct 2024)
Log Message:
-----------
Fix formatting
Modified Paths:
--------------
trunk/docutils/docutils/writers/manpage.py
trunk/docutils/test/test_writers/test_manpage.py
Modified: trunk/docutils/docutils/writers/manpage.py
===================================================================
--- trunk/docutils/docutils/writers/manpage.py 2024-10-21 21:47:17 UTC (rev 9961)
+++ trunk/docutils/docutils/writers/manpage.py 2024-10-22 16:45:26 UTC (rev 9962)
@@ -832,9 +832,8 @@
self.body.append('.sp\n image: %s\n' % (
node.attributes['uri']))
self.document.reporter.warning(
- f'''{msg}
-Please provide an "alt" attribute with textual replacement.''',
- base_node=node)
+ f'{msg}\nPlease provide an "alt" attribute with textual'
+ ' replacement.', base_node=node)
# else 0 arguments to image not allowed
raise nodes.SkipNode
Modified: trunk/docutils/test/test_writers/test_manpage.py
===================================================================
--- trunk/docutils/test/test_writers/test_manpage.py 2024-10-21 21:47:17 UTC (rev 9961)
+++ trunk/docutils/test/test_writers/test_manpage.py 2024-10-22 16:45:26 UTC (rev 9962)
@@ -11,7 +11,6 @@
import sys
import unittest
from io import StringIO
-import docutils
if __name__ == '__main__':
# prepend the "docutils root" to the Python library path
@@ -92,7 +91,6 @@
warnings.readlines())
-
document_start = r""".\" Man page generated from reStructuredText by manpage writer
.\" from docutils 0.22b.dev.
.
@@ -586,7 +584,7 @@
# test defintion
# [ input, expect, expected_warning ]
-totest_system_msgs ={}
+totest_system_msgs = {}
# check we get an INFO not a WARNING
totest_system_msgs['image'] = [
["""\
@@ -629,7 +627,7 @@
more text
.\\" End of generated man page.
""",
-[ '<string>:3: (WARNING/2) "image" not supported by "manpage" writer.\n',
+['<string>:3: (WARNING/2) "image" not supported by "manpage" writer.\n',
'Please provide an "alt" attribute with textual replacement.\n']
]
]
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|