Use the new section title style in Asciidoctor.
We previous use the section title style like: Section level 1 =============== Section level 2 --------------- Which have a problem in Asciidoctor that the number of "="s or "-"s must match the number of characters in the header exactly, as a result it's easy to make mistakes while changing the titles. Asciidoctor provides a better style like: = Section level 1 == Section level 2 So we switched to this style. Also fixed a bug in replace_macros.py, which will not cause any problem in the old style. Change-Id: I811dd7238735d98f662767c17086152cd69aea02
This commit is contained in:
@@ -97,7 +97,7 @@ try:
|
||||
# Case of "GERRIT\n------" at the footer
|
||||
out_file.write(GERRIT_UPLINK)
|
||||
last_line = ''
|
||||
elif PAT_SEARCHBOX.match(line):
|
||||
elif PAT_SEARCHBOX.match(last_line):
|
||||
# Case of 'SEARCHBOX\n---------'
|
||||
out_file.write(SEARCH_BOX)
|
||||
last_line = ''
|
||||
|
||||
Reference in New Issue
Block a user