Reformatted code base using black.

This commit is contained in:
Goffi 2024-06-19 18:44:57 +02:00
commit 53fdaa9d09

View file

@ -45,8 +45,8 @@ NOTE_A_REV_TPL = "rev_note_{}"
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 @@ class DCWikiParser(object):
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")