From 9db05ff806e35351b3e9f17db5e0c5e4939f7a39 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Wed, 14 Apr 2021 17:48:25 +0200 Subject: [PATCH] Squashed 'cgilite/' changes from 4b913ff..c207699 c207699 bugfix: fix error when reading literal "+" char from storage e7e354d basic print styles git-subtree-dir: cgilite git-subtree-split: c207699d7f39ce4bf96139e25da61e13cb94be4c --- common.css | 14 ++++++++++++++ storage.sh | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/common.css b/common.css index 99855b9..f9b17ad 100644 --- a/common.css +++ b/common.css @@ -87,6 +87,20 @@ input + label { margin-left: .375em; } +@media print { + @page { margin: 20mm; } + + h1 { text-align: center; } + + h1, h2, h3, h4, h5, h6, form legend { + page-break-inside: avoid; + page-break-after: avoid; + page-break-before: auto; + } + li { page-break-inside: avoid; } + th, dt { page-break-after: avoid; } +} + /* ======= End Generic Styles ======= */ /* ======= Common Styles ======= */ diff --git a/storage.sh b/storage.sh index 82d3d77..355bd56 100755 --- a/storage.sh +++ b/storage.sh @@ -105,7 +105,7 @@ UNSTRING(){ \\n*) out="${out}${BR}"; in="${in#\\n}" ;; \\r*) out="${out}${CR}"; in="${in#\\r}" ;; \\t*) out="${out} "; in="${in#\\t}" ;; - \\+) out="${out}+"; in="${in#\\+}" ;; + \\+*) out="${out}+"; in="${in#\\+}" ;; +*) out="${out} "; in="${in#+}" ;; \\*) in="${in#\\}" ;; *) out="${out}${in%%[\\+]*}"; in="${in#"${in%%[\\+]*}"}" ;; -- 2.39.2