Put 'beforeProperty' breaks with indented properties. #89
Copy link
Copy link
Closed
Description
related to #68
@Test
void testPutBeforeIndentedProperty() throws IOException {
final String given = "# header comment\n"
+ "\n"
+ " # key comment\n"
+ " key=val";
final String expected = "# header comment\n"
+ "\n"
+ "put=putVal\n"
+ " # key comment\n"
+ " key=val";
Properties p = Properties.loadProperties(new StringReader(given));
p.put(p.beforeProperty("key"),"put", "putVal");
expectStoreText(p, expected);
}results in
# header comment
# key comment
put=putVal
key=valReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
fix: insert before attached comments on indented properties (#89)