1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-07-20 23:41:12 +02:00

Updated gallery.py for new page break format.

This commit is contained in:
Chris Palmer
2021-02-09 23:44:03 +00:00
parent 4f9729cf86
commit 60350eb228
2 changed files with 4 additions and 26 deletions

View File

@@ -68,9 +68,10 @@ def gallery(force):
match = re.match(r"^(#+).*$", line)
if match:
line = '#' + line
if line == '---\n':
break;
print(line[:-1], file = output_file)
if line == '---\n' or line == '<span></span>\n':
break
if line != '<a name="TOP"></a>\n':
print(line[:-1], file = output_file)
else:
print(Fore.MAGENTA + "Can't find", document, Fore.WHITE);
with open(target_dir + "/readme.html", "wt") as html_file: