|
|
@ -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): |
|
|
|
if not tag and e: |
|
|
|
tag = self.tagname(e) |
|
|
|
if attributes is None and e: |
|
|
|
attributes = self.common_attributes(e) |
|
|
|
else: |
|
|
|
attributes = {} |
|
|
|
if attributes is None: |
|
|
|
if e: |
|
|
|
attributes = self.common_attributes(e) |
|
|
|
else: |
|
|
|
attributes = {} |
|
|
|
if content is None and e and hasattr(e, "content"): |
|
|
|
content = e.content |
|
|
|
if content is None and e and hasattr(e, "text"): |
|
|
|