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

Fix Whitespace Handling in VerbatimRangedTag to Preserve Source Code Formatting #11

Open
evpeople opened this issue Sep 17, 2024 · 1 comment

Comments

@evpeople
Copy link

In the current implementation of VerbatimRangedTag, all whitespace is ignored within the content. This prevents the preservation of source code formatting during export. Should this be modified?

@evpeople
Copy link
Author

I removed

    let newline = parse_newline
        // .then_ignore(ws.repeated())
        .to(NorgToken::SingleNewline);

the then_ignore in newline and newlines the it can keep the code format, but I am not sure whether it breaks other things.

I first tried to make changes in stage_3 to ensure minimal impact, but logging revealed that it was already too late.

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

No branches or pull requests

1 participant