Show More
@@ -106,6 +106,12 b' def findliteralblocks(blocks):' | |||||
106 | # Partially minimized form: remove space and both |
|
106 | # Partially minimized form: remove space and both | |
107 | # colons. |
|
107 | # colons. | |
108 | blocks[i]['lines'][-1] = blocks[i]['lines'][-1][:-3] |
|
108 | blocks[i]['lines'][-1] = blocks[i]['lines'][-1][:-3] | |
|
109 | elif len(blocks[i]['lines']) == 1 and \ | |||
|
110 | blocks[i]['lines'][0].lstrip(' ').startswith('.. ') and \ | |||
|
111 | blocks[i]['lines'][0].find(' ', 3) == -1: | |||
|
112 | # directive on its onw line, not a literal block | |||
|
113 | i += 1 | |||
|
114 | continue | |||
109 | else: |
|
115 | else: | |
110 | # Fully minimized form: remove just one colon. |
|
116 | # Fully minimized form: remove just one colon. | |
111 | blocks[i]['lines'][-1] = blocks[i]['lines'][-1][:-1] |
|
117 | blocks[i]['lines'][-1] = blocks[i]['lines'][-1][:-1] |
General Comments 0
You need to be logged in to leave comments.
Login now