diff libervia/backend/plugins/plugin_syntax_wiki_dotclear.py @ 4270:0d7bb4df2343

Reformatted code base using black.
author Goffi <goffi@goffi.org>
date Wed, 19 Jun 2024 18:44:57 +0200
parents 4b842c1fb686
children
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_syntax_wiki_dotclear.py	Tue Jun 18 12:06:45 2024 +0200
+++ b/libervia/backend/plugins/plugin_syntax_wiki_dotclear.py	Wed Jun 19 18:44:57 2024 +0200
@@ -45,8 +45,8 @@
 NOTE_A_TPL = "note_{}"
 ESCAPE_CHARS_BASE = r"(?P<escape_char>[][{}%|\\/*#@{{}}~$-])"
 ESCAPE_CHARS_EXTRA = (
-    r"!?_+'()"
-)  # These chars are not escaped in XHTML => dc_wiki conversion,
+    r"!?_+'()"  # These chars are not escaped in XHTML => dc_wiki conversion,
+)
 # but are used in the other direction
 ESCAPE_CHARS = ESCAPE_CHARS_BASE.format("")
 FLAG_UL = "ul"  # must be the name of the element
@@ -227,9 +227,9 @@
                 elif data in ("r", "d"):
                     img_elt["style"] = "display:block; float:right; margin:0 0 1em 1em"
                 elif data == "c":
-                    img_elt[
-                        "style"
-                    ] = "display:block; margin-left:auto; margin-right:auto"
+                    img_elt["style"] = (
+                        "display:block; margin-left:auto; margin-right:auto"
+                    )
                 else:
                     log.warning("bad position argument for image, ignoring it")