Fix chyby z fe63458a51
, generate_simple_tag špatně propagoval atributy.
This commit is contained in:
parent
a36da55481
commit
51e51ec425
1 changed files with 5 additions and 4 deletions
|
@ -156,10 +156,11 @@ class OutputGenerator:
|
||||||
def generate_simple_tag(self, e: Union[Element, None]=None, tag: str="", attributes: Union[dict[str,str],None]=None, content: Union[ListContainer, Element, list[Union[Element, ListContainer]], str, None]=None, inline: Union[bool, None]=None):
|
def generate_simple_tag(self, e: Union[Element, None]=None, tag: str="", attributes: Union[dict[str,str],None]=None, content: Union[ListContainer, Element, list[Union[Element, ListContainer]], str, None]=None, inline: Union[bool, None]=None):
|
||||||
if not tag and e:
|
if not tag and e:
|
||||||
tag = self.tagname(e)
|
tag = self.tagname(e)
|
||||||
if attributes is None and e:
|
if attributes is None:
|
||||||
attributes = self.common_attributes(e)
|
if e:
|
||||||
else:
|
attributes = self.common_attributes(e)
|
||||||
attributes = {}
|
else:
|
||||||
|
attributes = {}
|
||||||
if content is None and e and hasattr(e, "content"):
|
if content is None and e and hasattr(e, "content"):
|
||||||
content = e.content
|
content = e.content
|
||||||
if content is None and e and hasattr(e, "text"):
|
if content is None and e and hasattr(e, "text"):
|
||||||
|
|
Loading…
Reference in a new issue