Commit c0623f2c authored by Vegard Vesterheim's avatar Vegard Vesterheim
Browse files

Apparently NAV does rstrip internally upon saving

parent cdc29e91
......@@ -75,7 +75,7 @@ def main():
# FIXME, maybe add more into description?
desc_fields = ["beskrivelse", "termineringsadresse"]
description = ". ".join(
[ni[p] for p in desc_fields if p in ni and ni[p]]
[ni[p].rstrip() for p in desc_fields if p in ni and ni[p]]
)
if not description:
description = "No description found"
......
Markdown is supported
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