From 7f03d954dc90ceaa43bd3b603ffe94b7b548705f Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 17 Oct 2024 11:02:17 -0500 Subject: [PATCH] fix: Newlines within type description not parsed correctly in docs (#942) Goes back to stripping newlines for type descriptions specifically (changed in #805) as those don't parse properly now --- sphinx_ext/deephaven_autodoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx_ext/deephaven_autodoc.py b/sphinx_ext/deephaven_autodoc.py index 4cfdcea49..5d7abc703 100644 --- a/sphinx_ext/deephaven_autodoc.py +++ b/sphinx_ext/deephaven_autodoc.py @@ -104,7 +104,7 @@ def extract_list_item(node: docutils.nodes.list_item) -> ParamData: Returns: The param data """ - field = node.astext().replace("\n", "
") + field = node.astext().replace("\n", " ") try: match = re.match(r"(.+?) \((.*?)\) -- (.+)", field, re.DOTALL) if match is None: