From 65cd124c9debff65fd763e213b026f488bf0e337 Mon Sep 17 00:00:00 2001 From: shirshasa Date: Wed, 28 Oct 2020 15:28:44 +0300 Subject: [PATCH] [LAW-3716]converter fix: change indent value to fixed --- src/config.py | 1 + src/html_preprocessor.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config.py b/src/config.py index 14cd5e5..8937b6e 100644 --- a/src/config.py +++ b/src/config.py @@ -89,6 +89,7 @@ class LawCartaConfig: '#800000': '#800000', '#808080': '#808080' } + INDENT = '30px' class BookApiWrapper: diff --git a/src/html_preprocessor.py b/src/html_preprocessor.py index 3298004..109b4e8 100644 --- a/src/html_preprocessor.py +++ b/src/html_preprocessor.py @@ -180,7 +180,7 @@ class HTMLPreprocessor: if indent is not None: indent = indent.group(1) - style += f'text-indent: {indent}in;' + style += f'text-indent: {LawCartaConfig.INDENT};' if style: p.attrs['style'] = style