forked from LiveCarta/BookConverter
LAW-6853
This commit is contained in:
@@ -77,7 +77,7 @@ class HtmlPresetsProcessor:
|
|||||||
def _wrap_tag(**kwargs):
|
def _wrap_tag(**kwargs):
|
||||||
dict_attributes = {attr["name"]: attr["value"] for attr in kwargs["rule"]["tag_to_wrap"]["attrs"]}
|
dict_attributes = {attr["name"]: attr["value"] for attr in kwargs["rule"]["tag_to_wrap"]["attrs"]}
|
||||||
kwargs["found_tag"].wrap(kwargs["body_tag"].new_tag(
|
kwargs["found_tag"].wrap(kwargs["body_tag"].new_tag(
|
||||||
kwargs["rule"]["tag_to_wrap"]["name"]), attrs=dict_attributes)
|
kwargs["rule"]["tag_to_wrap"]["name"], attrs=dict_attributes))
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def set_attrs_to_parent(tag, parent_tag):
|
def set_attrs_to_parent(tag, parent_tag):
|
||||||
|
|||||||
Reference in New Issue
Block a user