Skip to content

Fix/html comment newline 1823#2438

Open
SarthakDudhe wants to merge 3 commits into
beautifier:mainfrom
SarthakDudhe:fix/html-comment-newline-1823
Open

Fix/html comment newline 1823#2438
SarthakDudhe wants to merge 3 commits into
beautifier:mainfrom
SarthakDudhe:fix/html-comment-newline-1823

Conversation

@SarthakDudhe
Copy link
Copy Markdown

Title: Fix: prevent comments without leading spaces from forcing newlines (#1823)

Description: This PR fixes an issue where HTML comments like (no leading space) were forced to a new line when following a closing tag, while (with space) remained on the same line.

The fix involves updating the comment identification logic in the HTML beautifier to use a prefix check instead of an exact string match. This ensures consistent behavior for all HTML comments.

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.

1 participant