From b7accdcf0d0de11a05c84434b0662517d4e0d00b Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Sat, 16 Jan 2021 16:32:48 +0100 Subject: [PATCH] * tests/python/ipnbdoctest.py: Work around failures on Fedora. --- tests/python/ipnbdoctest.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/python/ipnbdoctest.py b/tests/python/ipnbdoctest.py index 4eb120efa..5d2c57134 100755 --- a/tests/python/ipnbdoctest.py +++ b/tests/python/ipnbdoctest.py @@ -127,6 +127,9 @@ def canonicalize(s, type, ignores): s = re.sub(r' fill="black"', '', s) s = re.sub(r' stroke="transparent"', ' stroke="none"', s) s = re.sub(r'>', '>\n<title>', s) + # At some point Fedora changed the default font-familly from + # Times,serif to Times-Roman. + s = re.sub(r'"Times[^"]+"', '"Times"', s) # tooltips with a ", " are likely to have \n which was not # well supported by 2.38. s = re.sub(r'<a xlink:title=".*?, .*?">\n', '<a xlink:title="...">\n', s,