Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ enum AutoIndent {
private int innerIndent() {
int innerIndent = continuingListItemStack.total() + continuingListStack.total();
if (continuingFooterTag) {
innerIndent += 4;
innerIndent += classicJavadoc ? 4 : 2;
}
return innerIndent;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1980,17 +1980,15 @@ public void markdownBlockTagContinuationLines() {
/// rather than +4.
record Test(String foo) {}
""";
// TODO(b/537488642): continuation lines should be +2 to avoid the bug here.
// The four-space indentation leads to the second paragraph being interpreted as a code block.
String expected =
"""
/// Something something something.
///
/// @param foo a parameter with a long description that will need to be wrapped onto multiple lines,
/// with each line being indented by the default amount for continuation lines in a block tag.
/// with each line being indented by the default amount for continuation lines in a block tag.
///
/// There is even a second paragraph which illustrates why the indentation should be +2 rather
/// than +4.
/// There is even a second paragraph which illustrates why the indentation should be +2 rather
/// than +4.
record Test(String foo) {}
""";

Expand Down