Skip to content

Commit

Permalink
remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
TOsmanov committed Aug 22, 2024
1 parent bb55caf commit 233f1cd
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions foliant/preprocessors/escapecode.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,23 +451,6 @@ def render_list(self, element: block.List) -> str:
sep = f"{self._prefix}\n"
return sep.join(result)

def render_quote(self, element: block.Quote) -> str:
# adds a key 'in_quote' to all lists
element = self._add_quote_prop(element)

with self.container("> ", "> "):
result = self.render_children(element)
self._prefix = self._second_prefix
return result + "\n"

def _add_quote_prop(self, element):
for i, child in enumerate(element.children):
if 'tight' in dir(child):
element.children[i].in_quote = True
if 'children' in dir(child):
element.children[i] = self._add_quote_prop(child)
return element

def render_html_block(self, element: block.HTMLBlock) -> str:
children = element.children
raw_type = 'comments'
Expand Down

0 comments on commit 233f1cd

Please sign in to comment.