diff options
| Commit | 65761da843606786bbd2f38f4e22a7ea117a6644 (patch) | |
|---|---|---|
| Author | 2024-02-28 08:26:30 +0200 | |
| Committer | 2024-02-28 08:26:30 +0200 | |
| Files | ef706c95ad3eaff6b3cf050adcc5517ca3e3a0ee | |
| syndamia.com-65761da843606786bbd2f38f4e22a7ea117a6644.tar syndamia.com-65761da843606786bbd2f38f4e22a7ea117a6644.tar.gz syndamia.com-65761da843606786bbd2f38f4e22a7ea117a6644.zip | ||
| Parent | f5d1e97bd7facdfbcee835a5e0d851d2c91645b5 (diff) | |
[awk-edits/MEL] Fixed single-line tag error logic
1 files changed, 4 insertions, 4 deletions
| -rw-r--r-- | awk-edits/MEL-parser.awk | 8 |
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>)?&[{[()\]}:.]/ { 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) == ":") { |