Skip to content

Preserve whitespace when evaluating {{{data}}} #1800

@BenRomberg

Description

@BenRomberg

I have a use-case where I show indented code with white-space: pre. As such, preserving the whitespace in the rendered document is critical. Vue seems to trim the whitespace when evaluating {{{data}}} expressions with embedded HTML tags. I wonder if this is necessary or if there's a workaround available.

For now, I'm replacing all spaces in the beginning with   which is a very ugly workaround I'd like to get rid of.

Other than that I must say I'm pretty happy with Vue so far! Good work! :-)

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