From 68ad78e0a353227f32a91f4e6bb3d979e117f08e Mon Sep 17 00:00:00 2001 From: Alvie Rahman Date: Wed, 1 Sep 2021 14:08:24 +0100 Subject: [PATCH] Formatting --- notes2web.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/notes2web.py b/notes2web.py index 74c218d..bad6077 100755 --- a/notes2web.py +++ b/notes2web.py @@ -41,6 +41,7 @@ def get_files(folder): return markdown, plaintext, other + def git_filehistory(working_dir, filename): print(f"{pathlib.Path(filename).relative_to(working_dir)=}") git_response = subprocess.run( @@ -313,7 +314,13 @@ def main(args): ) for entry in indexentries: - html += f"
{entry['title']}{'/' if entry['isdirectory'] else ''}
" + html += ( + '
' + f'' + f'{entry["title"]}{"/" if entry["isdirectory"] else ""}' + '' + '
' + ) html += INDEX_TEMPLATE_FOOT with open(directory.joinpath('index.html'), 'w+') as fp: