mirror of
https://github.com/samba-team/samba.git
synced 2025-12-19 12:23:49 +03:00
python/samba: adapt ms_schema[_markdown].py to the latest schema definitions
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
b2fbfa0ff1
commit
dcce25ae8a
@@ -51,6 +51,10 @@ def read_ms_markdown(in_file, out_folder):
|
||||
|
||||
out_path = os.path.join(out_folder, innertext(node).strip())
|
||||
ldf = open(out_path, 'w')
|
||||
elif node.tag == 'h2':
|
||||
if ldf is not None:
|
||||
ldf.close()
|
||||
ldf = None
|
||||
elif node.tag == 'p' and ldf is not None:
|
||||
ldf.write(innertext(node).replace('```', '') + '\n')
|
||||
finally:
|
||||
|
||||
Reference in New Issue
Block a user