From 09ed9c46a16c792ad43b4f601b001fca157983bc Mon Sep 17 00:00:00 2001 From: google-java-format Team Date: Thu, 26 Nov 2026 06:35:05 -0800 Subject: [PATCH] Avoid indenting HTML lists in Markdown Javadoc. In `///` Markdown Javadoc comments, HTML list tags (` /// ///
- ///
Term - ///
Definition + ///
Term + ///
Definition /// - ///

More details.

+ ///

More details. + /// void m() {} } """; @@ -2774,29 +2776,29 @@ void m() {} void n() {} } """; - // Baseline: nested HTML lists push deep indentation, turning paragraphs into indented code - // blocks. String expected = """ class T { /// Types: ///

    1. - ///
    2. First + ///
    3. First /// - ///

      Details for first. - ///

    4. Second + ///

      Details for first. + ///

    5. Second /// - ///

      Details for second.

    + ///

    Details for second. + /// void m() {} /// Works only if: ///