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: Parse indented newlines correctly #448

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Apr 29, 2024

  1. fix: Parse indented newlines correctly

    Fixes the case where an indented newline causes invalid parse results.
    
    Consider the following input where the second line contains an indented
    new line.
    
    ```yaml
    a:·b␊
    ···␊
    c:·d␊
    ```
    
    Before this fix, the parser produces the following:
    
    ```yaml
    a: null
    b
    c: d
    ```
    
    With this fix, the output is as expected.
    
    ```yaml
    a: b
    c: d
    ```
    
    Signed-off-by: Charith Ellawala <[email protected]>
    charithe committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    3541536 View commit details
    Browse the repository at this point in the history