summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-08-16 17:00:40 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-08-16 17:00:40 (EDT)
commit30859cdaa14c439b7b4548b00de71b99f1818742 (patch)
treeb10f969e05dd0e1994687e7391a76b900ab66a78
parent6ebeb0d7d736a3d41081f9bc860baa5ec832dfe6 (diff)
parse_control(): Call field_cb on paragraph end
-rw-r--r--lib/control.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/control.sh b/lib/control.sh
index ffa8bc7..97c7a96 100644
--- a/lib/control.sh
+++ b/lib/control.sh
@@ -51,6 +51,12 @@ parse_control()
# The first line is blank to consolidate
# initialization code (see heredocument below).
in_paragraph='false'
+ if [ "x${name}" != 'x' ]; then
+ if ! "${field_cb}" "${name}" "${value}"
+ then
+ return 0
+ fi
+ fi
if ! "${paragraph_cb}"; then
return 0
fi