瀏覽代碼

#1031 run Mermaid update with stripped content

Falko Schindler 1 年之前
父節點
當前提交
2ab9d68c92
共有 1 個文件被更改,包括 1 次插入1 次删除
  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())