Skip to content

Commit 2512022

Browse files
committed
fix: removing unnecessary _nolinebreak? mentions in the doc
1 parent dfd6c66 commit 2512022

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/pyconverter/xml2py/ast_tree.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
"Caret1?": "",
5454
"Caret 40?": "",
5555
'``"``': "``",
56+
"/_nolinebreak?": "",
57+
"_nolinebreak?": "",
5658
}
5759

5860
superlatif = ["st", "nd", "rd", "th"]
@@ -909,10 +911,9 @@ def to_rst(self, indent="", max_length=100):
909911
if "*" in content:
910912
content = content.replace("*", r"\*")
911913
output = f":file:`{content}` {self.tail}"
912-
# need to be modified
914+
# TODO: needs to fix the issue with the ``nnn.jpg`` file name
913915
if "nnn.jpg" in output:
914-
print(content)
915-
# stop
916+
pass
916917
return output
917918

918919

@@ -1059,7 +1060,6 @@ def to_rst(self, indent="", max_length=100, links=None, base_url=None, fcache=No
10591060
"""Return a string to enable converting the element to an RST format."""
10601061
rst_phrase = super().to_rst(indent, max_length, links, base_url, fcache)
10611062
rst_phrase = rst_phrase.replace("\n\n", "")
1062-
print(rst_phrase)
10631063
return rst_phrase
10641064

10651065

0 commit comments

Comments
 (0)