Skip to content

Commit 8a4e8e9

Browse files
eamonnmcmanusgoogle-java-format Team
authored andcommitted
Update the test for Autolinks so it exposes a genuine problem.
PiperOrigin-RevId: 907852785
1 parent 89e525c commit 8a4e8e9

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

core/src/test/java/com/google/googlejavaformat/java/JavadocFormattingTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1993,11 +1993,10 @@ public void markdownAutolinks() {
19931993
assume().that(MARKDOWN_JAVADOC_SUPPORTED).isTrue();
19941994
String input =
19951995
"""
1996-
/// <http://example.com> should be preserved.
1996+
/// <http://{@code example.com> <br> is not inside @code}.
19971997
class Test {}
19981998
""";
1999-
// TODO: find a test case that will break if autolinks are not handled correctly.
2000-
// Probably something like: <http://{@code>this should not be handled like a code span}
1999+
// TODO: the <br> should trigger a line break since it is not in fact inside {@code ...}.
20012000
String expected = input;
20022001
doFormatTest(input, expected);
20032002
}

0 commit comments

Comments
 (0)