Remove trailing newlines from reference URls

This commit is contained in:
Terence Eden
2024-10-02 10:42:08 +01:00
parent 33bff5b2ab
commit d385b7ca5d
4 changed files with 4 additions and 10 deletions

View File

@@ -48,7 +48,7 @@ for ref_url in ref_list:
if ref_url.endswith('.url'):
ref_name = ref_url.split('.')[0]
if ref_name in svg_data:
svg_data[ref_name]['source'] = open(ref_dir + ref_url, "r").readline()
svg_data[ref_name]['source'] = open(ref_dir + ref_url, "r").readline().rstrip()
# Set up the tables
readme_table = "<table>\n"