Sfoglia il codice sorgente

#1031 run Mermaid update with stripped content

Falko Schindler 1 anno fa
parent
commit
2ab9d68c92
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      nicegui/elements/mermaid.py

+ 1 - 1
nicegui/elements/mermaid.py

@@ -19,4 +19,4 @@ class Mermaid(ContentElement):
 
     def on_content_change(self, content: str) -> None:
         self._props[self.CONTENT_PROP] = content.strip()
-        self.run_method('update', content)
+        self.run_method('update', content.strip())