summaryrefslogtreecommitdiff
path: root/common.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'common.sh.in')
-rw-r--r--common.sh.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/common.sh.in b/common.sh.in
index 2488a69..54431fe 100644
--- a/common.sh.in
+++ b/common.sh.in
@@ -1,6 +1,6 @@
# begin common.sh {{{
-# Copyright (C) 2013-2014, 2016 Luke Shumaker <lukeshu@sbcglobal.net>
+# Copyright (C) 2013-2014, 2016-2017 Luke Shumaker <lukeshu@sbcglobal.net>
#
# This file is not considered part of GNU Emacs.
#
@@ -42,7 +42,9 @@ flag() {
printf -- "%s\n" "$flag"
flag=''
fi
- printf -- "%- ${_flag_indent}s%s\n" "$flag" "$(print "${@:2}")"
+ local text
+ text="$(print "${@:2}")"
+ printf -- "%- ${_flag_indent}s%s\n" "$flag" "${text//$'\n'/"$(printf -- "\n%- ${_flag_indent}s%s\n" '')"}"
}
error() {