We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a79333d commit 8852febCopy full SHA for 8852feb
1 file changed
src/plone/restapi/renderer/blocks/slate.py
@@ -3,6 +3,8 @@
3
from zope.interface import implementer
4
from zope.interface import Interface
5
6
+NEWLINE = "\n"
7
+
8
9
@implementer(IConvertBlockToMarkdown)
10
@adapter(Interface, Interface)
@@ -84,7 +86,7 @@ def extract_text(
84
86
return f"{indent}{index}. {children}\n"
85
87
return f"{indent}- {children}\n"
88
case "ul" | "ol":
- return f"{children}{'\n' if depth == 0 else ''}"
89
+ return f"{children}{NEWLINE if depth == 0 else ''}"
90
case _:
91
return children
92
0 commit comments