Handle 'uindentation' of empty texts.'
This commit is contained in:
parent
04fe576385
commit
fba35555b3
@ -476,7 +476,7 @@ def render_block(content, acc, _class, is_code):
|
|||||||
acc.append('</pre>')
|
acc.append('</pre>')
|
||||||
|
|
||||||
def unindent(content):
|
def unindent(content):
|
||||||
base_indentation = min([
|
base_indentation = min([0] + [
|
||||||
len(l) - len(l.lstrip(' '))
|
len(l) - len(l.lstrip(' '))
|
||||||
for l in content.split('\n')
|
for l in content.split('\n')
|
||||||
if len(l.strip()) > 0
|
if len(l.strip()) > 0
|
||||||
|
Loading…
Reference in New Issue
Block a user