Skip to content

html: preserve newline before closing bracket - #2524

Open
oiahoon wants to merge 1 commit into
beautifier:mainfrom
oiahoon:fix/preserve-closing-bracket-newline
Open

html: preserve newline before closing bracket#2524
oiahoon wants to merge 1 commit into
beautifier:mainfrom
oiahoon:fix/preserve-closing-bracket-newline

Conversation

@oiahoon

@oiahoon oiahoon commented Aug 17, 2026

Copy link
Copy Markdown

Description

Preserve an existing newline before an HTML tag closing bracket when wrap_attributes is preserve or preserve-aligned. Inline closing brackets and non-preservation modes keep their existing behavior.

  • Source branch in the fork has a meaningful name

Fixes #1707

Before Merge Checklist

  • JavaScript implementation
  • Python implementation (NA: HTML beautifier is JavaScript-only)
  • Added tests to data files
  • Added command-line options (NA: no new option)
  • README documents new options (NA: no new option)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HTML option "wrap-attributes": "preserve" does not preserve line break before closing angle bracket

1 participant