Show More
@@ -138,7 +138,7 b' def findliteralblocks(blocks):' | |||
|
138 | 138 | i += 1 |
|
139 | 139 | return blocks |
|
140 | 140 | |
|
141 | _bulletre = re.compile(r'(-|[0-9A-Za-z]+\.|\(?[0-9A-Za-z]+\)|\|) ') | |
|
141 | _bulletre = re.compile(r'(\*|-|[0-9A-Za-z]+\.|\(?[0-9A-Za-z]+\)|\|) ') | |
|
142 | 142 | _optionre = re.compile(r'^(-([a-zA-Z0-9]), )?(--[a-z0-9-]+)' |
|
143 | 143 | r'((.*) +)(.*)$') |
|
144 | 144 | _fieldre = re.compile(r':(?![: ])([^:]*)(?<! ):[ ]+(.*)') |
@@ -596,7 +596,7 b' def formathtml(blocks):' | |||
|
596 | 596 | out.append(' <dt>%s\n <dd>%s\n' % (term, text)) |
|
597 | 597 | elif btype == 'bullet': |
|
598 | 598 | bullet, head = lines[0].split(' ', 1) |
|
599 |
if bullet |
|
|
599 | if bullet in ('*', '-'): | |
|
600 | 600 | openlist('ul', level) |
|
601 | 601 | else: |
|
602 | 602 | openlist('ol', level) |
@@ -118,6 +118,13 b' Line blocks are also a form of list:' | |||
|
118 | 118 | | This is the first line. |
|
119 | 119 | The line continues here. |
|
120 | 120 | | This is the second line. |
|
121 | ||
|
122 | Bullet lists are also detected: | |
|
123 | ||
|
124 | * This is the first bullet | |
|
125 | * This is the second bullet | |
|
126 | It has 2 lines | |
|
127 | * This is the third bullet | |
|
121 | 128 | """ |
|
122 | 129 | |
|
123 | 130 | debugformats('lists', lists) |
@@ -187,6 +187,12 b' Line blocks are also a form of list:' | |||
|
187 | 187 | |
|
188 | 188 | This is the first line. The line continues here. |
|
189 | 189 | This is the second line. |
|
190 | ||
|
191 | Bullet lists are also detected: | |
|
192 | ||
|
193 | * This is the first bullet | |
|
194 | * This is the second bullet It has 2 lines | |
|
195 | * This is the third bullet | |
|
190 | 196 | ---------------------------------------------------------------------- |
|
191 | 197 | |
|
192 | 198 | 30 column format: |
@@ -231,6 +237,14 b' list:' | |||
|
231 | 237 | This is the first line. The |
|
232 | 238 | line continues here. |
|
233 | 239 | This is the second line. |
|
240 | ||
|
241 | Bullet lists are also | |
|
242 | detected: | |
|
243 | ||
|
244 | * This is the first bullet | |
|
245 | * This is the second bullet It | |
|
246 | has 2 lines | |
|
247 | * This is the third bullet | |
|
234 | 248 | ---------------------------------------------------------------------- |
|
235 | 249 | |
|
236 | 250 | html format: |
@@ -276,6 +290,14 b' Line blocks are also a form of list:' | |||
|
276 | 290 | <li> This is the first line. The line continues here. |
|
277 | 291 | <li> This is the second line. |
|
278 | 292 | </ol> |
|
293 | <p> | |
|
294 | Bullet lists are also detected: | |
|
295 | </p> | |
|
296 | <ul> | |
|
297 | <li> This is the first bullet | |
|
298 | <li> This is the second bullet It has 2 lines | |
|
299 | <li> This is the third bullet | |
|
300 | </ul> | |
|
279 | 301 | ---------------------------------------------------------------------- |
|
280 | 302 | |
|
281 | 303 | == options == |
General Comments 0
You need to be logged in to leave comments.
Login now