File tree 2 files changed +37
-1
lines changed
2 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
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
+
3
39
# # fluent.syntax 0.18 (May 20, 2020)
4
40
5
41
- Documentation is now on https://projectfluent.org/python-fluent/fluent.syntax/.
Original file line number Diff line number Diff line change 1
1
[metadata]
2
- version =0.18.0
2
+ version =0.18.1
3
3
4
4
[bdist_wheel]
5
5
universal =1
You can’t perform that action at this time.
0 commit comments