output fixes
This commit is contained in:
parent
6740035958
commit
a0fd7f0efa
@ -38,7 +38,7 @@ if __name__ == "__main__": # Following is executed only if script is directly e
|
|||||||
for section, counter in Sections():
|
for section, counter in Sections():
|
||||||
# Print the name of the exported section & number of remaining sections
|
# Print the name of the exported section & number of remaining sections
|
||||||
print(
|
print(
|
||||||
f"{BOLD}{counter.count}. {RESET}"
|
f"{BOLD}{counter.count + 1}. {RESET}"
|
||||||
+ highlight_unknown_chars(section.title, R, RESET),
|
+ highlight_unknown_chars(section.title, R, RESET),
|
||||||
end="",
|
end="",
|
||||||
)
|
)
|
||||||
@ -65,7 +65,7 @@ if __name__ == "__main__": # Following is executed only if script is directly e
|
|||||||
s: str = "s" if counter.remaining() > 1 else ""
|
s: str = "s" if counter.remaining() > 1 else ""
|
||||||
print(
|
print(
|
||||||
f" {BOLD}Exporting {R}{counter.remaining()}{RESET}"
|
f" {BOLD}Exporting {R}{counter.remaining()}{RESET}"
|
||||||
+ f"{BOLD} SPIP article{s}{RESET} to Markdown & YAML files\n"
|
+ f"{BOLD} SPIP article{s}{RESET} to Markdown & YAML files"
|
||||||
)
|
)
|
||||||
# Print the title of the article being exported
|
# Print the title of the article being exported
|
||||||
print(
|
print(
|
||||||
@ -87,7 +87,7 @@ if __name__ == "__main__": # Following is executed only if script is directly e
|
|||||||
# Print the outputted file’s path when finished exporting the article
|
# Print the outputted file’s path when finished exporting the article
|
||||||
print(f" {BOLD}Article>{RESET} {articlepath}")
|
print(f" {BOLD}Article>{RESET} {articlepath}")
|
||||||
# Print the outputted file’s path when finished exporting the section
|
# Print the outputted file’s path when finished exporting the section
|
||||||
print(f"\n{BOLD}Section>{RESET} {sectionpath}\n")
|
print(f"{BOLD}Section>{RESET} {sectionpath}\n")
|
||||||
|
|
||||||
# Loop through each article that contains an unknown character
|
# Loop through each article that contains an unknown character
|
||||||
for article in unknown_chars_articles:
|
for article in unknown_chars_articles:
|
||||||
|
Loading…
Reference in New Issue
Block a user