Make sure arguments isn't followed by a : and the seciton is code/text before checkin... master
authorRobert Pengelly <robertapengelly@hotmail.com>
Sat, 20 Jun 2026 18:17:53 +0000 (19:17 +0100)
committerRobert Pengelly <robertapengelly@hotmail.com>
Sat, 20 Jun 2026 18:17:53 +0000 (19:17 +0100)
process.c

index 037f52fce294b8f3006adbc533aee2c6553b614d..cb77bb8bfec443409f7a58c80776fe191b6ebec2 100644 (file)
--- a/process.c
+++ b/process.c
@@ -1097,7 +1097,7 @@ static void process_line (char *line, char *line_end) {
             
             }
             
             
             }
             
-            if (machine_dependent_find_templates (arg, 1)) {
+            if (*line != ':' && current_section == text_section && machine_dependent_find_templates (arg, 1)) {
             
                 saved_ch = *(line = find_end_of_line (line));
                 *line = '\0';
             
                 saved_ch = *(line = find_end_of_line (line));
                 *line = '\0';