forked from LiveCarta/BookConverter
change indent processing
This commit is contained in:
@@ -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": [],
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user