From 026cd2e0fc6081c19d681a40720f7a70b449f3d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Tue, 4 May 2021 20:22:12 +0200 Subject: [PATCH] change table width, accept manual line breaks --- odtgen.sh | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/odtgen.sh b/odtgen.sh index 67232a9..177065a 100755 --- a/odtgen.sh +++ b/odtgen.sh @@ -72,14 +72,17 @@ odt_content(){ - + - + + + + @@ -92,6 +95,10 @@ odt_content(){ + + + + @@ -152,8 +159,8 @@ odt_content(){ - - + + @@ -171,13 +178,13 @@ odt_content(){ $(sed 1d "invoices/$id" |while read -r time work hours; do - time="$(UNSTRING "${time#time=}")" - work="$(UNSTRING "${work#work=}")" + time="$(UNSTRING "${time#time=}" |sed 's;\r;;g')" + work="$(UNSTRING "${work#work=}" |sed 's;\r;;g')" hours="$(UNSTRING "${hours#hours=}")" cat <<-TROW - ${time} + ${time} ${work} -- 2.39.2