From 292817433ed608d967bb96789491ad65fd3e1d1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Wed, 12 Feb 2020 20:36:55 +0100 Subject: [PATCH] fix newlines --- workdirfs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workdirfs.py b/workdirfs.py index d2c8f9a..a2d273c 100755 --- a/workdirfs.py +++ b/workdirfs.py @@ -203,10 +203,10 @@ def main(args): inplace=True) as fh: for line in fh: if line.startswith('XDG_ARCHIVE_DIR'): - print("XDG_ARCHIVE_DIR=\"${HOME}/"+args.archive+'"\n') + print("XDG_ARCHIVE_DIR=\"${HOME}/"+args.archive+'"', end='\n') foundarchive=True elif line.startswith('XDG_WORK_DIR'): - print("XDG_WORK_DIR=\"${HOME}/"+args.mountpoint+'"\n') + print("XDG_WORK_DIR=\"${HOME}/"+args.mountpoint+'"', end='\n') foundwork=True else: print(line, end='')