Skip to content

Conversation

@Martin005
Copy link
Contributor

@Martin005 Martin005 commented Oct 27, 2025

This PR fixes incorrect sourcepos for HTML blocks.

When writing the tests, I came across a bug, so I created this issue as a follow-up: #655

Fixes #448, fixes #507

@Martin005 Martin005 changed the title fix: Incorrect sourcepos for HTML block fix: Incorrect sourcepos for HTML blocks Oct 27, 2025
@kivikakk
Copy link
Owner

Thank you — amazing. I've refactored the newline counter with another similar function and put it somewhere hopefully more discoverable.

@kivikakk kivikakk enabled auto-merge October 28, 2025 04:05
@kivikakk kivikakk merged commit f6a6b6b into kivikakk:main Oct 28, 2025
22 checks passed
@Martin005 Martin005 deleted the sourcepos-html-blocks branch October 28, 2025 09:41
@Martin005
Copy link
Contributor Author

@kivikakk Thank you! That refactoring makes sense, thanks again ❤️

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect sourcepos for a html comment of HtmlBlock sourcepos is incorrect for <script> tags

2 participants