Browse Source

Fix chyby z fe63458a51, generate_simple_tag špatně propagoval atributy.

pull/28/head
Jan Černohorský 1 year ago
parent
commit
51e51ec425
  1. 3
      src/formatitko/output_generator.py

3
src/formatitko/output_generator.py

@ -156,7 +156,8 @@ 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:
if e:
attributes = self.common_attributes(e) attributes = self.common_attributes(e)
else: else:
attributes = {} attributes = {}

Loading…
Cancel
Save