Skip to content

[UB] Clarify handling of whitespace in verbatim formatting #44

@mhatzl

Description

@mhatzl

The spec does not describe how whitespace must be handled in verbatim formatting.
Outside verbatim context, non escaped whitespaces are combined to one space. Even new lines are combined.

For verbatim formatting, this is not the intended behaviour.
Here, all non line-breaking whitespace should be kept as is.

Line-breaking whitespace should be turned into one space.
Otherwise multiline verbatim formatting would always result in multiline output, because it is not possible to unescape a new line.
If a new line is wanted in verbatim formatting, there is still the option to escape it using a backslash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions