Skip to content

🐛 BUG: <textarea> is treated like a block level element, adding whitespace in value #431

@danawoodman

Description

@danawoodman

Describe the Bug

When saving an Astro file, <textarea> is treated like a block level element which then adds whitespace into the value. Textarea content should be treated the same as <pre> and not auto-broken up into newlines.

Zight Recording 2024-12-13 at 02 27 49 PM

image

image

Steps to Reproduce

  1. npm init astro using template
  2. add a <textarea> field with a value and save it
  3. ...
  4. ...
  5. see line breaks after formatting

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