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'))