From b4e5e3bcacce331a2c06855733ceffe31cb8a5f1 Mon Sep 17 00:00:00 2001 From: Katie Liu Date: Thu, 16 Nov 2023 02:14:40 -0500 Subject: [PATCH] undid auto line wrap by autopep8 which was causing errors --- CONTRIBUTING.md | 6 +----- src/convert.py | 12 ++++-------- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 608840b..b3571f8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -41,11 +41,7 @@ 7. Run autopep8 to format the code. - `autopep8 --in-place --recursive --exclude=_version.py .` - - Alternatively, install the autopep8 VS Code extension, and then run it on a file by: - - `Right Click File Contents > Format Document With... > autopep8` + `autopep8 --in-place --recursive --exclude='_version.py' --ignore=E501 .` If running into issues, try adding `python -m` in front of the command. diff --git a/src/convert.py b/src/convert.py index 104dd6d..71b095f 100644 --- a/src/convert.py +++ b/src/convert.py @@ -55,18 +55,14 @@ def load_config_file(config_file): def get_html_before_body(filename, css_url, metadata): """Function returns the html of the page before and up to the """ html = '\n' - html += f'\n' + html += f'\n' html += '\n' html += '\t\n' - html += f'\t{metadata["title"] - if "title" in metadata else filename}\n' + html += f'\t{metadata["title"] if "title" in metadata else filename}\n' if 'keywords' in metadata: - html += f'\t\n' + html += f'\t\n' if 'description' in metadata: - html += f'\t\n' + html += f'\t\n' html += '\t\n' if css_url: html += f'\t\n'