Skip to content

Commit 5a90cc7

Browse files
committed
fix: url rendering
1 parent 6f0ea8f commit 5a90cc7

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/pyconverter/xml2py/ast_tree.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3392,13 +3392,14 @@ def py_notes(self, note_elem_list, section_title):
33923392
"""Python-formatted notes string."""
33933393
lines = [section_title, "-" * len(section_title)]
33943394
if section_title == "Notes" and self._is_paragraph_in_arg_desc:
3395-
lines.append("")
3396-
lines.append(".. warning::")
3397-
lines.append(
3398-
" This function contains specificities regarding the argument definitions."
3399-
)
3400-
lines.append(f" Please refer to the `Ansys documentation <{self.url}`_")
3401-
lines.append(" for further explanations.")
3395+
warning_message = [
3396+
"",
3397+
".. warning::",
3398+
" This function contains specificities regarding the argument definitions.",
3399+
" Please refer to the `command documentation <{self.url}>`_",
3400+
" for further explanations.",
3401+
]
3402+
lines.extend(warning_message)
34023403
for note in note_elem_list:
34033404
if note.title and str(note.title).strip() != section_title:
34043405
note_title = str(note.title).strip()

0 commit comments

Comments
 (0)