Sitelet https://web.archive.org/web/20201104205345/https://github.com/prettydiff/prettydiff/issues/618
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indentation issue on markup tags with multiple comments #618

Open
panoply opened this issue Sep 3, 2019 · 0 comments
Open

Indentation issue on markup tags with multiple comments #618

panoply opened this issue Sep 3, 2019 · 0 comments

Comments

@panoply
Copy link

@panoply panoply commented Sep 3, 2019 •

Multiple comments asserted before markup tags result in incorrect formatting:

Input:

<!-- Comment 1 -->
<!-- Comment 2 -->
<div>
<h1>Example</h1>
</div>

Output:

<!-- Comment 1 -->
<!-- Comment 2 -->
    <div><h1>Example
</h1></div>

Expected

<!-- Comment 1 -->
<!-- Comment 2 -->
<div>
  <h1>Example</h1>
</div>

Lexer: Markup

@panoply panoply changed the title Indentation issue on markup tags with comments Indentation issue on markup tags with multiple comments Sep 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.