Skip to content

Views incorrectly removes meaningful whitespace between HTML elements #1867

@TimWolla

Description

@TimWolla

Tempest version

2.14.0

PHP version

8.4

Operating system

Linux

Description

The view parser incorrectly removes whitespace between (inline) HTML elements, resulting in the rendered output missing spaces.

Steps to reproduce

Consider the following view:

  <p>
    <strong>Test</strong> <em>Test</em>
  </p>

This is rendered into the following HTML:

<p><strong>Test</strong><em>Test</em></p>

which is being rendered as a single word TestTest rather than two separate words as expected based on the HTML I've written in the view.

See also this example JSFiddle: https://jsfiddle.net/n5dethw2/

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions