properties icon indicating copy to clipboard operation
properties copied to clipboard

Trailing comments are not preserved

Open glyn opened this issue 4 years ago • 0 comments

The README states:

Comments and the order of keys are preserved.

However, comments at the end of a properties file are not preserved. See https://github.com/magiconair/properties/pull/44 for a failing test.

Note that the example properties file shown in wikipedia has a trailing comment, so trailing comments are certainly valid.

A special, degenerate case of trailing comments is a properties file consisting of comments alone.

glyn avatar Jul 02 '20 07:07 glyn