Skip to content

Commit

Permalink
fluent.syntax 0.18.1
Browse files Browse the repository at this point in the history
  • Loading branch information
stasm committed Sep 15, 2020
1 parent b41a014 commit c9910d8
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions fluent.syntax/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
# Changelog

## fluent.syntax 0.18.1 (September 15, 2020)

- Fix serialization of multiline patterns starting with special characters. (#156)

The built-in behavior of `FluentSerializer` is to serialize multiline
patterns starting on a new line:

```properties
key =
Foo
Bar
```

This used to lead to syntax errors if the pattern started with one of the
special characters in the Fluent Syntax: a curly brace, a period, an
asterisk, or a square bracket, and if it was originally written with the
first line on the same line as the identifier:

```properties
key = *Foo
Bar
```

Such a pattern must not be serialized as following, because the asterisk
has a special meaning if placed at the beginning of a line.

```properties
# Syntax Error
key =
*Foo
Bar
```

The fix preserves the original layout of the pattern, i.e. it is now
serialized starting inline with the identifier.

## fluent.syntax 0.18 (May 20, 2020)

- Documentation is now on https://projectfluent.org/python-fluent/fluent.syntax/.
Expand Down
2 changes: 1 addition & 1 deletion fluent.syntax/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[metadata]
version=0.18.0
version=0.18.1

[bdist_wheel]
universal=1
Expand Down

0 comments on commit c9910d8

Please sign in to comment.