Skip to content

Formal syntax produces two trailing empty newlines #229

Closed
@caugner

Description

@caugner

What information was incorrect, unhelpful, or incomplete?

The Formal syntax on https://developer.mozilla.org/en-US/docs/Web/CSS/basic-shape/rect#formal_syntax contains two lines with syntax, followed by two empty lines:

Image

What did you expect to see?

I would expect to only see the two lines with syntax:

Image

Do you have any supporting links, references, or citations?

These <br/> appear to be written here:

for constituent in constituents.iter().skip(if skip_first { 1 } else { 0 }) {
renderer.render(&mut out, constituent)?;
out.push_str("<br/>");
}

write!(
output,
r#"<span class="token property" id="{typ}">{typ} = </span><br/>"#
)?;

Do you have anything more you want to share?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageTriage needed by staff and/or partners. Automatically applied when an issue is opened.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions