From 39d2dfabac93c700d6888e51ad582076658b23cc Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 29 May 2024 12:47:35 -0400 Subject: latex footers from document header make, a fix --- src/sisudoc/io_out/latex.d | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/sisudoc/io_out') diff --git a/src/sisudoc/io_out/latex.d b/src/sisudoc/io_out/latex.d index a6867cb..771bc57 100644 --- a/src/sisudoc/io_out/latex.d +++ b/src/sisudoc/io_out/latex.d @@ -995,13 +995,11 @@ template outputLaTeX() { string _ft_2 = format(q"┃ \cfoot{\href{%s}{%s}}┃", "https://git.sisudoc.org", "git",); if (doc_matters.conf_make_meta.make.footer.length > 0) { - if (doc_matters.conf_make_meta.make.footer.length > 0) { - if (doc_matters.conf_make_meta.make.footer[0].matchAll(rgx.inline_link)) { - _ft ~= doc_matters.conf_make_meta.make.footer[0] - .replace(rgx.inline_link, "{\\tiny \\href{$2}{$1}}"); - } else { - _ft ~= _ft_1; - } + if (doc_matters.conf_make_meta.make.footer[0].matchAll(rgx.inline_link)) { + _ft ~= doc_matters.conf_make_meta.make.footer[0] + .replace(rgx.inline_link, "{\\tiny \\href{$2}{$1}}"); + } else { + _ft ~= _ft_1; } if (doc_matters.conf_make_meta.make.footer.length > 1) { if (doc_matters.conf_make_meta.make.footer[1].matchAll(rgx.inline_link)) { -- cgit v1.2.3