Skip to content
This repository was archived by the owner on Sep 16, 2022. It is now read-only.
This repository was archived by the owner on Sep 16, 2022. It is now read-only.

Component.preserveWhitespace = false is too aggressive and not context aware #804

@cedx

Description

@cedx

Same issue as the TypeScript flavor of Angular: angular/angular#21049
(read the feed for the full explanation of the problem).

I've tried to apply preserveWhitespace: false to my components, and ALL OF THEM have rendering glitches (i.e. words linked together).

A markup like: Foo <strong>Bar</strong> Baz (display: "Foo Bar Baz")...
...is processed to: Foo<strong>Bar<strong>Baz (display: "FooBarBaz").

If I want to have a proper display of my texts, I need to add an insane amount of &ngsp;/&nbsp;.

I think that preserveWhitespace: false should ignore the (first) preceding/leading whitespace before/after tags within an inline formatting context.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions