From: Paul Hänsch Date: Tue, 4 May 2021 18:22:12 +0000 (+0200) Subject: change table width, accept manual line breaks X-Git-Url: http://git.plutz.net/?p=invoices;a=commitdiff_plain;h=026cd2e0fc6081c19d681a40720f7a70b449f3d8 change table width, accept manual line breaks --- 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}