Polish asciidoc generated by changelog generator

Refine the generator so that an additional space is included after
section titles.
This commit is contained in:
Phillip Webb 2024-03-19 21:50:53 -07:00
parent 4849f8f273
commit ecf89c3fe3
2 changed files with 7 additions and 4 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -68,11 +68,11 @@ class ChangelogWriter implements AutoCloseable {
String newVersionNumber = changelog.newVersionNumber();
Map<DifferenceType, List<Difference>> differencesByType = collateByType(changelog);
write("Configuration property changes between `%s` and `%s`%n", oldVersionNumber, newVersionNumber);
write("%n%n%n== Deprecated in %s%n", newVersionNumber);
write("%n%n%n== Deprecated in %s%n%n", newVersionNumber);
writeDeprecated(differencesByType.get(DifferenceType.DEPRECATED));
write("%n%n%n== Added in %s%n", newVersionNumber);
write("%n%n%n== Added in %s%n%n", newVersionNumber);
writeAdded(differencesByType.get(DifferenceType.ADDED));
write("%n%n%n== Removed in %s%n", newVersionNumber);
write("%n%n%n== Removed in %s%n%n", newVersionNumber);
writeRemoved(differencesByType.get(DifferenceType.DELETED), differencesByType.get(DifferenceType.DEPRECATED));
}

View File

@ -3,11 +3,13 @@ Configuration property changes between `1.0` and `2.0`
== Deprecated in 2.0
_None_.
== Added in 2.0
|======================
| Key | Default value | Description
@ -19,6 +21,7 @@ _None_.
== Removed in 2.0
|======================
| Key | Replacement | Reason