forked from LiveCarta/BookConverter
[LAW-3716]converter fix: change indent value to fixed
This commit is contained in:
@@ -89,6 +89,7 @@ class LawCartaConfig:
|
||||
'#800000': '#800000',
|
||||
'#808080': '#808080'
|
||||
}
|
||||
INDENT = '30px'
|
||||
|
||||
|
||||
class BookApiWrapper:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user