From 65761da843606786bbd2f38f4e22a7ea117a6644 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 28 Feb 2024 08:26:30 +0200 Subject: [awk-edits/MEL] Fixed single-line tag error logic --- awk-edits/MEL-parser.awk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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]*(

|

)?&[{[()\]}:.]/ { 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) == ":") { -- cgit v1.3.1-23-gd82d