Skip to content

Commit e5d62f7

Browse files
committed
Fix enum doc generation
1 parent fc840b8 commit e5d62f7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

generator/generate.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,10 @@ def base_sphinx_format(self, doc: str) -> list[str]:
413413
)
414414
return lines
415415

416+
def base_sphinx_format_str(self, doc: str) -> str:
417+
"""Convert string in doxygen format to a string in sphinx format."""
418+
return "\n".join(self.base_sphinx_format(doc))
419+
416420
def docs_in_sphinx_format(self) -> str:
417421
"""Converts self.docs into sphinx format."""
418422
in_block = False
@@ -2284,7 +2288,7 @@ def generate_enums(self):
22842288
# so that they are available in Sphinx-generated doc
22852289
symbols = _NL_.join(
22862290
[
2287-
f""" * ``vlc.{cls}.{v.name}`` { "\n".join(e.base_sphinx_format(v.docs)) }"""
2291+
f""" * ``vlc.{cls}.{v.name}`` { e.base_sphinx_format_str(v.docs) }"""
22882292
for v in e.vals
22892293
]
22902294
)

0 commit comments

Comments
 (0)