From a8f7d7cdfaaab66c7582abcf663ee7288c7e5202 Mon Sep 17 00:00:00 2001 From: Bastien Dumont Date: Sun, 9 Jan 2022 22:01:00 +0100 Subject: [PATCH] =?UTF-8?q?Remplacement=20de=20c=20par=20text=20(voir=20pr?= =?UTF-8?q?=C3=A9c=C3=A9demment)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Filtres-Pandoc/en-dash-to-hyphen-in-ranges.lua | 4 ++-- Filtres-Pandoc/suppress-column-label-patrologia.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Filtres-Pandoc/en-dash-to-hyphen-in-ranges.lua b/Filtres-Pandoc/en-dash-to-hyphen-in-ranges.lua index 41511d1..d01ee11 100644 --- a/Filtres-Pandoc/en-dash-to-hyphen-in-ranges.lua +++ b/Filtres-Pandoc/en-dash-to-hyphen-in-ranges.lua @@ -20,7 +20,7 @@ function Str (s) - if string.match(s.c, '[0-9mdclxvi]+–[0-9mdclxvi]+') then - return pandoc.Str(string.gsub(s.c, '–', '-')) + if string.match(s.text, '[0-9mdclxvi]+–[0-9mdclxvi]+') then + return pandoc.Str(string.gsub(s.text, '–', '-')) end end diff --git a/Filtres-Pandoc/suppress-column-label-patrologia.lua b/Filtres-Pandoc/suppress-column-label-patrologia.lua index 2bc83f4..7db7086 100644 --- a/Filtres-Pandoc/suppress-column-label-patrologia.lua +++ b/Filtres-Pandoc/suppress-column-label-patrologia.lua @@ -36,10 +36,10 @@ local function isPatrologiaReference(first, second, third, last) ) ) and (second.t == 'Str' - and string.match(second.c, '^ [0-9]+,$') + and string.match(second.text, '^ [0-9]+,$') and third.t == 'Space' and last.t == 'Str' - and string.match(last.c, '^col. $')) + and string.match(last.text, '^col. $')) end function Inlines (inlines)