Ygg01 / Linguini

C# Port of fluent.rs zero-copy parser
Apache License 2.0
28 stars 8 forks source link

Newlines fix #36

Closed Ygg01 closed 1 year ago

Ygg01 commented 1 year ago

The commit fixes #35.

Issue is caused by fixes introduced in #31 , where I tried to fixed line numbers on Windows, but due to tests relying on .ftl files made for Linux, they weren't caught on Windows machines.

To solve #31 where a Line\r\n I added mechanism to emit lines as Line + MISSING_EOL flag (flag which is true for CLRF line endings). However a text like \r\n will be treated due as `` + MISSING_EOL flag causing it to be ignored. Now these elements are no longer ignored.