Summary Files Commits Branches @commit @diff @stats
path: root / awk-edits / MEL-parser.awk
diff options
context:
space:
mode:
1 files changed, 4 insertions, 4 deletions
-rw-r--r--awk-edits/MEL-parser.awk8
diff --git a/awk-edits/MEL-parser.awk b/awk-edits/MEL-parser.awk
index f0a8f84..777caa1 100644
--- a/awk-edits/MEL-parser.awk
+++ b/awk-edits/MEL-parser.awk
@@ -95,12 +95,12 @@ melInsideCode == 0 && /^[ \t]*(<p>|<dt>)?&#38;[{[()\]}:.]/ {
replaceWith = MEL[name, MELLINEOPEN]
append = append MEL[name, MELLINECLOSE]
- if (replaceWith == "" && append == "")
- printErr("Unknown single line tag \"" name "\"")
- else if (replaceWith == "")
+ if (replaceWith == "")
printErr("Missing beginning for line tag \"" name "\"")
- else
+ else if (MEL[name, MELLINECLOSE] == "")
printErr("Missing ending for line tag \"" name "\"")
+ else if (replaceWith == "" && MEL[name, MELLINECLOSE] == "")
+ printErr("Unknown single line tag \"" name "\"")
}
# Inside paragraph
else if (substr(lineCopy, RSTART, 1) == ":") {