Commit b92edbdc authored by Georg Teufelberger's avatar Georg Teufelberger
Browse files

Ignore empty lines in link text files

parent f5c90ac2
......@@ -514,9 +514,12 @@ def read_links_from_file(file):
# Strip lines containing a `#` symbol as they are comments
file_links = [line for line in file_links if not line.startswith('#')]
# Strip newlines
# Strip newline characters
file_links = [x.rstrip('\n') for x in file_links]
# Strip empty lines
file_links = [line for line in file_links if line]
# Add links from file to the list of links to look at
links += file_links
else:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment