Merge pull request #106 from matrix-org/erikj/newline_gendoc_STOP_BEING_CRANKY
gendoc should just add newlines rather than complaining about the lack thereof
This commit is contained in:
commit
e5559e4ea5
1 changed files with 2 additions and 5 deletions
|
@ -128,11 +128,8 @@ def get_rst(file_info, title_level, title_styles, spec_dir, adjust_titles):
|
|||
)
|
||||
else:
|
||||
rst = f.read()
|
||||
if rst[-2:] != "\n\n":
|
||||
raise Exception(
|
||||
("File %s should end with TWO new-line characters to ensure " +
|
||||
"file concatenation works correctly.") % (file_info,)
|
||||
)
|
||||
|
||||
rst += "\n\n"
|
||||
return rst
|
||||
# dicts look like {0: filepath, 1: filepath} where the key is the title level
|
||||
elif isinstance(file_info, dict):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue