Handle 'uindentation' of empty texts.'
This commit is contained in:
parent
04fe576385
commit
fba35555b3
1 changed files with 1 additions and 1 deletions
|
@ -476,7 +476,7 @@ def render_block(content, acc, _class, is_code):
|
|||
acc.append('</pre>')
|
||||
|
||||
def unindent(content):
|
||||
base_indentation = min([
|
||||
base_indentation = min([0] + [
|
||||
len(l) - len(l.lstrip(' '))
|
||||
for l in content.split('\n')
|
||||
if len(l.strip()) > 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue