Skip to content

i18n ignore leading and trailing spaces #13114

@zh99998

Description

@zh99998

I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

now ng-xi18n will generate xliff including spaces, for example there is an element

    <p i18n>
        复制
    </p>

it will generate

        <source>
                    复制
                </source>

it's really weak to rely on spaces since they could changed Unintentionally or even by IDE reformat code.

Expected behavior

ignore leading and tailing spaces

Metadata

Metadata

Labels

area: i18nIssues related to localization and internationalizationfeatureLabel used to distinguish feature request from other issuesfeature: under considerationFeature request for which voting has completed and the request is now under considerationstate: Needs Design

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions