From 5c659c2b631728226b29c90bbae229b4f399ddae Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 23 Nov 2023 19:56:22 +0200 Subject: [csmap] No more removal of leading tabulation --- csmap.awk | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/csmap.awk b/csmap.awk index 7f17a76..410c82e 100755 --- a/csmap.awk +++ b/csmap.awk @@ -84,8 +84,6 @@ stage1 && /<[^>]*>[[:blank:]]*\{/ { } stage1 && /<[^>]*>/ { - removeLeadingTabulation() - # Start searching for a potential opening brace macroNameOnly = 1 macroNameLine = $0 @@ -96,8 +94,6 @@ stage1 && /<[^>]*>/ { stage1 && depth >= 1 { depth += gsub("{", "{") - gsub("}", "}") - removeLeadingTabulation() - skipORS = 0 if (depth <= namevec_TopDepth()) { # Remove macro closing braces @@ -121,13 +117,6 @@ stage1 && depth >= 1 { next } -function removeLeadingTabulation() { - # Remove leading tabulation when inside macro definition - for (i = namevec_Length(); i > 0; i--) { - sub(/^ /, "") - } -} - # # Stage 2 # Do substitution -- cgit v1.2.3