summaryrefslogtreecommitdiffstats
path: root/iredis/markdown.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-02-20 09:32:08 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-02-20 09:32:29 +0000
commit014c400849f01582f958e1a729ce239ffd7b2268 (patch)
treee30eac025e81b68a50ad7d167270bda28ee3ce21 /iredis/markdown.py
parentReleasing debian version 1.14.0-1. (diff)
downloadiredis-014c400849f01582f958e1a729ce239ffd7b2268.tar.xz
iredis-014c400849f01582f958e1a729ce239ffd7b2268.zip
Merging upstream version 1.14.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'iredis/markdown.py')
-rw-r--r--iredis/markdown.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/iredis/markdown.py b/iredis/markdown.py
index 89297ec..a24b793 100644
--- a/iredis/markdown.py
+++ b/iredis/markdown.py
@@ -39,7 +39,7 @@ class TerminalRender(mistune.HTMLRenderer):
tag = "ul"
if ordered:
tag = "ol"
- return "<%s>%s</%s>\n" % (tag, body, tag)
+ return "<{}>{}</{}>\n".format(tag, body, tag)
def list_item(self, text, *args):
"""Rendering list item snippet. Like ``<li>``."""
@@ -62,5 +62,5 @@ def replace_to_markdown_title(original):
def render(text):
replaced = replace_to_markdown_title(text)
html_text = markdown_render(replaced)
- logger.debug("[Document] {} ...".format(html_text)[:20])
+ logger.debug(f"[Document] {html_text} ..."[:20])
return to_formatted_text(HTML(html_text))