Skip to content

Commit 59a5377

Browse files
committed
Add ugly workaround until mkdocstrings/griffe#38 is fixed.
1 parent 62a9f99 commit 59a5377

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

Diff for: mkdocstrings_handlers/vba/util.py

+12-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,13 @@ def find_file_docstring(code: str) -> Docstring:
5858
if is_comment(line):
5959
docstring_lines.append(line)
6060

61+
docstring_value = "\n".join(uncomment_lines(docstring_lines))
62+
63+
# FIXME: https://github.com/mkdocstrings/griffe/issues/38
64+
docstring_value = docstring_value.replace(":", ";")
65+
6166
return Docstring(
62-
"\n".join(uncomment_lines(docstring_lines)),
67+
value=docstring_value,
6368
parser=Parser.google,
6469
parser_options={},
6570
)
@@ -182,11 +187,16 @@ def find_procedures(code: str) -> Generator[VbaProcedureInfo, None, None]:
182187
break
183188
docstring_lines.append(source_line)
184189

190+
docstring_value = "\n".join(uncomment_lines(docstring_lines))
191+
192+
# FIXME: https://github.com/mkdocstrings/griffe/issues/38
193+
docstring_value = docstring_value.replace(":", ";")
194+
185195
# Yield it and start over.
186196
yield VbaProcedureInfo(
187197
signature=procedure["signature"],
188198
docstring=Docstring(
189-
value="\n".join(uncomment_lines(docstring_lines)),
199+
value=docstring_value,
190200
parser=Parser.google,
191201
parser_options={},
192202
),

0 commit comments

Comments
 (0)