diff --git a/crates/weaver_forge/README.md b/crates/weaver_forge/README.md index 42f4993c..cbd5f25a 100644 --- a/crates/weaver_forge/README.md +++ b/crates/weaver_forge/README.md @@ -768,7 +768,6 @@ The resulting comment in JavaDoc format would be: * incididunt ut labore et dolore magna aliqua. * * And an inline code snippet: {@code Attr.attr}. - *
*
*
* [!NOTE] Something very important here*/ diff --git a/crates/weaver_forge/expected_output/comment_format/example.java b/crates/weaver_forge/expected_output/comment_format/example.java index 346f9454..f4293ba5 100644 --- a/crates/weaver_forge/expected_output/comment_format/example.java +++ b/crates/weaver_forge/expected_output/comment_format/example.java @@ -88,7 +88,6 @@ * incididunt ut labore et dolore magna aliqua. * * And an inline code snippet: {@code Attr.attr}. - *
*
*
* [!NOTE] Something very important here*/ diff --git a/crates/weaver_forge/src/formats/html.rs b/crates/weaver_forge/src/formats/html.rs index 641ccaf6..51e651be 100644 --- a/crates/weaver_forge/src/formats/html.rs +++ b/crates/weaver_forge/src/formats/html.rs @@ -245,7 +245,7 @@ impl<'source> HtmlRenderer<'source> { ) -> Result<(), Error> { if ctx.add_old_style_paragraph { ctx.pushln(indent)?; - if !matches!(md_node, Node::List(_)) { + if matches!(md_node, Node::Paragraph(_)) { ctx.push_unbroken_ln("
", indent)?; } ctx.add_old_style_paragraph = false;