change indent processing

This commit is contained in:
Kiryl
2022-12-22 18:28:40 +03:00
parent 38d8024292
commit 7b2c35b15a
3 changed files with 56 additions and 25 deletions

View File

@@ -48,18 +48,28 @@ class LiveCartaConfig:
If property has not empty list, it means that only certain property-value combinations can be transformed.
"""
LIVECARTA_STYLE_ATTRS = {
"text-indent": [],
"font-variant": ["small-caps"],
"text-align": [x for x in ["justify", "right", "center", "left"] if x != "left"],
"align": [],
"font": [],
"font-family": [],
"font-size": [],
"font-variant": ["small-caps"],
"font-weight": ["bold", "600", "700", "800", "900"], # <strong>
"font-style": ["italic"], # <i>
"text-decoration": ["underline", "line-through"], # <u> , <s>
"text-decoration-line": ["underline", "line-through"], # <u> , <s>
"text-transform": [],
"text-align": [x for x in ["justify", "right", "center", "left"] if x != "left"],
"text-indent": [],
"margin": [],
"margin-top": [],
"margin-right": [],
"margin-left": [],
"margin-bottom": [],
"padding": [],
"padding-top": [],
"padding-right": [],
"padding-left": [],
"padding-bottom": [],
"vertical-align": ["super"], # <sup>
"color": [],
"background-color": [],
@@ -76,8 +86,4 @@ class LiveCartaConfig:
"border-bottom": [],
"list-style-type": [],
"list-style-image": [],
"margin-left": [],
"margin-top": [],
"margin": [],
}