From 94d68db7aff791dc7c389e3a35044a7daa0af326 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 28 Dec 2020 19:46:13 +0530 Subject: [PATCH] LRF Output: Fix conversion broken in calibre 5 when font size rescaling is active. Fixes #1909224 [Error al convertir a LRF](https://bugs.launchpad.net/calibre/+bug/1909224) --- src/calibre/ebooks/lrf/pylrs/pylrs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/lrf/pylrs/pylrs.py b/src/calibre/ebooks/lrf/pylrs/pylrs.py index e5c78a2690..000211c1cd 100644 --- a/src/calibre/ebooks/lrf/pylrs/pylrs.py +++ b/src/calibre/ebooks/lrf/pylrs/pylrs.py @@ -577,7 +577,7 @@ class Book(Delegator): if 'baselineskip' in span.attrs: span.attrs['baselineskip'] = rescale(span.attrs['baselineskip']) - text_styles = set(tb.textStyle for tb in text_blocks) + text_styles = (tb.textStyle for tb in text_blocks) for ts in text_styles: ts.attrs['fontsize'] = rescale(ts.attrs['fontsize']) ts.attrs['baselineskip'] = rescale(ts.attrs['baselineskip'])