##// END OF EJS Templates
minirst: do not add a 2nd empty paragraph...
Simon Heimberg -
r19995:0f6e360b stable
parent child Browse files
Show More
@@ -381,6 +381,9 b' def addmargins(blocks):'
381 if (blocks[i]['type'] == blocks[i - 1]['type'] and
381 if (blocks[i]['type'] == blocks[i - 1]['type'] and
382 blocks[i]['type'] in ('bullet', 'option', 'field')):
382 blocks[i]['type'] in ('bullet', 'option', 'field')):
383 i += 1
383 i += 1
384 elif not blocks[i - 1]['lines']:
385 # no lines in previous block, do not seperate
386 i += 1
384 else:
387 else:
385 blocks.insert(i, dict(lines=[''], indent=0, type='margin'))
388 blocks.insert(i, dict(lines=[''], indent=0, type='margin'))
386 i += 2
389 i += 2
General Comments 0
You need to be logged in to leave comments. Login now