diff options
-rw-r--r-- | ekdosis.dtx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx index 71d68d2..d92dcd5 100644 --- a/ekdosis.dtx +++ b/ekdosis.dtx | |||
@@ -1049,7 +1049,7 @@ idno={}, msName={}, origDate={}][3]{% | |||
1049 | %<*lua> | 1049 | %<*lua> |
1050 | % \fi | 1050 | % \fi |
1051 | % \begin{ekdlua} | 1051 | % \begin{ekdlua} |
1052 | 1052 | -- `' | |
1053 | -- This table will hold the functions: | 1053 | -- This table will hold the functions: |
1054 | ekdosis = {} | 1054 | ekdosis = {} |
1055 | 1055 | ||
@@ -1321,8 +1321,9 @@ function ekdosis.newcmdtotag(cmd, tag, attr) | |||
1321 | end | 1321 | end |
1322 | 1322 | ||
1323 | function ekdosis.newpatttotag(pat, repl) | 1323 | function ekdosis.newpatttotag(pat, repl) |
1324 | pat = string.gsub(pat, "([%[%]])", "%%%1") | ||
1324 | pat = string.gsub(pat, "%#[1-9]", "(.-)") | 1325 | pat = string.gsub(pat, "%#[1-9]", "(.-)") |
1325 | repl = string.gsub(repl, "%#", "%%") | 1326 | repl = string.gsub(repl, "%#([1-9])", "%%%1") |
1326 | table.insert(texpatttotags, { a = pat, b = repl }) | 1327 | table.insert(texpatttotags, { a = pat, b = repl }) |
1327 | return true | 1328 | return true |
1328 | end | 1329 | end |