summaryrefslogtreecommitdiffstats
path: root/lib/changelog.sh
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-01-05 13:29:53 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-01-05 13:29:53 (EST)
commit7d9cbae8d6125cc0da458773da173ba308debe0f (patch)
treeba47ae26c2811d04ec318e291170dbac35e0d51e /lib/changelog.sh
parenta343bb1d182ec1141fb45f26dfe1858623428db2 (diff)
_OB_LF: Define and use newline constant
Diffstat (limited to 'lib/changelog.sh')
-rw-r--r--lib/changelog.sh9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/changelog.sh b/lib/changelog.sh
index 6e72550..a679db0 100644
--- a/lib/changelog.sh
+++ b/lib/changelog.sh
@@ -117,8 +117,7 @@ ob_parse_changelog()
line_nr=$(($line_nr + 1))
if [ -z "${line}" ]; then
if [ "${expect}" = 'start_changes' ]; then
- OB_CHANGELOG_CHANGES="${OB_CHANGELOG_CHANGES}
-${line}"
+ OB_CHANGELOG_CHANGES="${OB_CHANGELOG_CHANGES}${_OB_LF}${line}"
elif [ "${expect}" = 'next_or_eof' ]; then
:
elif [ "${expect}" != 'changes_or_trailer' ]; then
@@ -126,8 +125,7 @@ ${line}"
'changelog_found_blank_line' \
"$(_ob_get_changelog_expect_str "${expect}")"
else
- blank_lines="${blank_lines}
-${line}"
+ blank_lines="${blank_lines}${_OB_LF}${line}"
fi
elif [ "${line# }" = "${line}" ]; then
if [ "${expect}" != 'first_heading' -a \
@@ -203,8 +201,7 @@ ${line}"
'changelog_found_change' \
"$(_ob_get_changelog_expect_str "${expect}")"
fi
- OB_CHANGELOG_CHANGES="${OB_CHANGELOG_CHANGES}
-${blank_lines}${line}"
+ OB_CHANGELOG_CHANGES="${OB_CHANGELOG_CHANGES}${_OB_LF}${blank_lines}${line}"
expect='changes_or_trailer'
blank_lines=
else