Skip to content

Commit

Permalink
Fixed block-quotes folding multiple lines into one
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiger-Tom committed Dec 7, 2023
1 parent 1310367 commit 337a12e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions devel/makedoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,10 @@ def render(self):
class mdBlockQuote(str):
__slots__ = ()
def irender(self, level: int = 0) -> typing.Generator[str, None, None]:
for line in inspect.cleandoc(self).split('\n'):
yield f'>{">"*int(level)} {line}'
lines = inspect.cleandoc(self).split('\n')
for line in lines[:-1]:
yield f'>{">"*int(level)} {line} '
yield f'>{">"*int(level)} {lines[-1]}'
def render(self, level: int = 0) -> str:
return '\n'.join(self.irender(level))
# Complex markdown functions
Expand Down

0 comments on commit 337a12e

Please sign in to comment.