Skip to content

Commit c9910d8

Browse files
committed
fluent.syntax 0.18.1
1 parent b41a014 commit c9910d8

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

fluent.syntax/CHANGELOG.md

+36
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,41 @@
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/.

fluent.syntax/setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[metadata]
2-
version=0.18.0
2+
version=0.18.1
33

44
[bdist_wheel]
55
universal=1

0 commit comments

Comments
 (0)