From 84239d053cb219914c5a8470cd5c27556f4954a3 Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Thu, 27 Feb 2025 17:06:19 +0100 Subject: [PATCH] Working on improving javadoc parsing --- standardize_test_format/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/standardize_test_format/__init__.py b/standardize_test_format/__init__.py index 3e76c3e..41b0d08 100644 --- a/standardize_test_format/__init__.py +++ b/standardize_test_format/__init__.py @@ -51,7 +51,7 @@ def from_camel_case(name: str) -> str: def parse_javadoc_to_description(text: str| None): if text is None: return '' - return re.sub(r'^\s*\*', ' ', text.strip()).strip() + return re.sub(r'\n\s*\*', ' ', text).strip() def replace_test_pattern(match: re.Match, with_javadoc: bool, with_display_name: bool) -> str: javadoc = parse_javadoc_to_description(match.group('javadoc'))