##// END OF EJS Templates
minirst: convert ``foo`` into "foo" upon display...
Martin Geisler -
r9623:32727ce0 default
parent child Browse files
Show More
@@ -260,6 +260,13 b' def finddefinitionlists(blocks):'
260 260 return blocks
261 261
262 262
263 def inlineliterals(blocks):
264 for b in blocks:
265 if b['type'] == 'paragraph':
266 b['lines'] = [l.replace('``', '"') for l in b['lines']]
267 return blocks
268
269
263 270 def addmargins(blocks):
264 271 """Adds empty blocks for vertical spacing.
265 272
@@ -316,6 +323,7 b' def format(text, width, indent=0):'
316 323 for b in blocks:
317 324 b['indent'] += indent
318 325 blocks = findliteralblocks(blocks)
326 blocks = inlineliterals(blocks)
319 327 blocks = findsections(blocks)
320 328 blocks = findbulletlists(blocks)
321 329 blocks = findoptionlists(blocks)
General Comments 0
You need to be logged in to leave comments. Login now