mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-21 22:20:57 +00:00
docs: fix outline for ports section
This commit is contained in:
parent
8e7087f4b8
commit
e0d431cbc9
@ -54,14 +54,11 @@ def process_readmes(intro_file, port_folder, ports_file, ports_folder):
|
||||
for readme_dir, readme_file in sorted(matches.items()):
|
||||
with open(readme_file, 'rb') as fin:
|
||||
for line in fin:
|
||||
#increase level of indetation
|
||||
#increase level of indentation
|
||||
parts = re.match('#(.*)\n',line)
|
||||
title_parts = re.match('(#\s+)(.*)\n',line)
|
||||
if parts:
|
||||
if title_parts:
|
||||
ports.write("## " + title_parts.group(2) + " {" + "#sec:" + readme_dir + "Port}\n" )
|
||||
else:
|
||||
ports.write("## " + line)
|
||||
if parts and title_parts:
|
||||
ports.write("# " + title_parts.group(2) + " {" + "#sec:" + readme_dir + "Port}\n" )
|
||||
else:
|
||||
ports.write(line)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user