We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Replaceable
1 parent 1ab7d0b commit a9051e1Copy full SHA for a9051e1
src/pyconverter/xml2py/ast_tree.py
@@ -1042,7 +1042,10 @@ def content_equals(self):
1042
1043
def to_rst(self, indent="", max_length=100):
1044
"""Return a string to enable converting the element to an RST format."""
1045
- rst_replaceable = f"``{self.content[0]}`` {self.tail}"
+ tail = self.tail
1046
+ if tail and "*" in tail:
1047
+ tail = self.tail.replace("*", "\*")
1048
+ rst_replaceable = f"``{self.content[0]}`` {tail}"
1049
if isinstance(self.prev_elem, Command):
1050
if any([self.content[0] in arg for arg in self.prev_elem.args]):
1051
rst_replaceable = f"{self.tail}"
0 commit comments