Skip to content

Incorrect normalization of 
 #15723

@KTibow

Description

@KTibow

Describe the bug

In textareas, you can use 
 to make newlines in placeholders. However, Svelte incorrectly normalizes them to spaces.

Reproduction

https://svelte.dev/playground/7dfe114da25a41a3bf70ebd5803bb9a5?version=5.25.10

Input: placeholder="a
b"
Output: placeholder="a b"

Severity

annoyance

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