Browse Source

Pokus o opravu #34, @jirikalvoda prosím vyzkoušej, nemám teď k dispozici plné prostředí.

katex-socket
Jan Černohorský 1 year ago
parent
commit
8ad8f73fea
  1. 1
      src/formatitko/html_generator.py

1
src/formatitko/html_generator.py

@ -46,6 +46,7 @@ class HTMLGenerator(OutputGenerator):
def start_tag(self, tag: str, attributes: dict[str,str]={}) -> str: def start_tag(self, tag: str, attributes: dict[str,str]={}) -> str:
words = [tag] words = [tag]
for key, value in attributes.items(): for key, value in attributes.items():
if value is not None:
words.append(f"{key}=\"{self.escape_special_chars(value)}\"") words.append(f"{key}=\"{self.escape_special_chars(value)}\"")
return "<" + " ".join(words) + ">" return "<" + " ".join(words) + ">"

Loading…
Cancel
Save