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