From e360c9b3fb2fa6906d1679094b0dce0834bada84 Mon Sep 17 00:00:00 2001 From: Kesara Rathnayake Date: Wed, 18 Sep 2024 22:57:00 +1200 Subject: [PATCH] fix(pdf): Fix li line height issue with superscripts Fixes #1160 --- xml2rfc/writers/pdf.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xml2rfc/writers/pdf.py b/xml2rfc/writers/pdf.py index c8612627..fd5fdb5e 100644 --- a/xml2rfc/writers/pdf.py +++ b/xml2rfc/writers/pdf.py @@ -166,6 +166,9 @@ def flatten_unicode_spans(self, html): tt, code, pre {{ font-family: {mono-fonts}; }} + li sup {{ + line-height: 0; + }} @page {{ size: A4; font-size: 12px; /* needed for the page header and footer text */