mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-05 00:56:58 +08:00
Polish asciidoc generated by changelog generator
Refine the generator so that an additional space is included after section titles.
This commit is contained in:
parent
4849f8f273
commit
ecf89c3fe3
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user