forked from LiveCarta/BookConverter
LAW-6853
This commit is contained in:
@@ -75,8 +75,9 @@ class HtmlPresetsProcessor:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _wrap_tag(**kwargs):
|
def _wrap_tag(**kwargs):
|
||||||
|
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"]))
|
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