##// 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 return blocks
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 def addmargins(blocks):
270 def addmargins(blocks):
264 """Adds empty blocks for vertical spacing.
271 """Adds empty blocks for vertical spacing.
265
272
@@ -316,6 +323,7 b' def format(text, width, indent=0):'
316 for b in blocks:
323 for b in blocks:
317 b['indent'] += indent
324 b['indent'] += indent
318 blocks = findliteralblocks(blocks)
325 blocks = findliteralblocks(blocks)
326 blocks = inlineliterals(blocks)
319 blocks = findsections(blocks)
327 blocks = findsections(blocks)
320 blocks = findbulletlists(blocks)
328 blocks = findbulletlists(blocks)
321 blocks = findoptionlists(blocks)
329 blocks = findoptionlists(blocks)
General Comments 0
You need to be logged in to leave comments. Login now