Skip to content

format: off deletes marked source code if a trailing whitespace is present #949

@Krastanov

Description

@Krastanov

the code should not be deleted in either case, but on 2.2.0 I get the following:

julia> format_text("""
       #! format: off
       1+1
       #! format: on

       """)
""

julia> format_text("""
       #! format: off
       1+1
       #! format: on
       """)
"#! format: off\n1+1\n#! format: on\n"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions