File tree Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## fluent.syntax 0.18.1 (September 15, 2020)
4+
5+ - Fix serialization of multiline patterns starting with special characters. (#156 )
6+
7+ The built-in behavior of ` FluentSerializer ` is to serialize multiline
8+ patterns starting on a new line:
9+
10+ ``` properties
11+ key =
12+ Foo
13+ Bar
14+ ```
15+
16+ This used to lead to syntax errors if the pattern started with one of the
17+ special characters in the Fluent Syntax: a curly brace, a period, an
18+ asterisk, or a square bracket, and if it was originally written with the
19+ first line on the same line as the identifier:
20+
21+ ```properties
22+ key = *Foo
23+ Bar
24+ ```
25+
26+ Such a pattern must not be serialized as following, because the asterisk
27+ has a special meaning if placed at the beginning of a line.
28+
29+ ```properties
30+ # Syntax Error
31+ key =
32+ *Foo
33+ Bar
34+ ```
35+
36+ The fix preserves the original layout of the pattern, i.e. it is now
37+ serialized starting inline with the identifier.
38+
339# # fluent.syntax 0.18 (May 20, 2020)
440
541 - Documentation is now on https://projectfluent.org/python-fluent/fluent.syntax/.
Original file line number Diff line number Diff line change 11[metadata]
2- version =0.18.0
2+ version =0.18.1
33
44[bdist_wheel]
55universal =1
You can’t perform that action at this time.
0 commit comments