Skip to content

Placeables are not parsed correctly at the beginning and the end of line #31

@stasm

Description

@stasm

I noticed two issues related to placeables at the beginning and the end of line:

  1. In a multiline message, a placeable at the beginning of the line results in an error, while it should be allowed.

  2. In a multiline message, a placeable at the end of the line consumes the \n after it.

I created fixtures for tests: stasm@f195581

(The branch is at https://github.com/stasm/fluent.js/tree/fixtures-placeable-line-extremes.)

Metadata

Metadata

Assignees

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