f.write(rendered.encode('utf-8'))
# Add back a trailing newline so we don't need to bother
# with patching test files to include a trailing newline to
- # make Git happy
- # TODO could keep_trailing_newline fix this better?
+ # make Git happy. Can't use keep_trailing_newline because
+ # that'd add it also for nested templates :(
f.write(b'\n')
else:
parsed = parse_xml(state, file)
f.write(rendered.encode('utf-8'))
# Add back a trailing newline so we don't need to bother with
# patching test files to include a trailing newline to make Git
- # happy
- # TODO could keep_trailing_newline fix this better?
+ # happy. Can't use keep_trailing_newline because that'd add it
+ # also for nested templates :(
f.write(b'\n')
# Empty index page in case no mainpage documentation was provided so
f.write(rendered.encode('utf-8'))
# Add back a trailing newline so we don't need to bother with
# patching test files to include a trailing newline to make Git
- # happy
- # TODO could keep_trailing_newline fix this better?
+ # happy. Can't use keep_trailing_newline because that'd add it
+ # also for nested templates :(
f.write(b'\n')
if not state.doxyfile['M_SEARCH_DISABLED']:
f.write(rendered.encode('utf-8'))
# Add back a trailing newline so we don't need to bother with
# patching test files to include a trailing newline to make Git
- # happy
- # TODO could keep_trailing_newline fix this better?
+ # happy. Can't use keep_trailing_newline because that'd add it
+ # also for nested templates :(
f.write(b'\n')
# Copy all referenced files
f.write(rendered.encode('utf-8'))
# Add back a trailing newline so we don't need to bother with
# patching test files to include a trailing newline to make Git
- # happy
- # TODO could keep_trailing_newline fix this better?
+ # happy. Can't use keep_trailing_newline because that'd add it
+ # also for nested templates :(
f.write(b'\n')
def extract_module_doc(state: State, path: List[str], module):
f.write(rendered.encode('utf-8'))
# Add back a trailing newline so we don't need to bother with
# patching test files to include a trailing newline to make Git
- # happy
- # TODO could keep_trailing_newline fix this better?
+ # happy. Can't use keep_trailing_newline because that'd add it
+ # also for nested templates :(
f.write(b'\n')
# Create index.html if it was not provided by the user