Commit f271d1766a9672fa9f7bee6f89e7c41171b25698
- Diff rendering mode:
- inline
- side by side
markdown/treeprocessors.py
(18 / 17)
|   | |||
| 275 | 275 | if child.getchildren(): | |
| 276 | 276 | stack.append(child) | |
| 277 | 277 | ||
| 278 | for element, lst in insertQueue: | ||
| 279 | if element.text: | ||
| 280 | element.text = \ | ||
| 281 | markdown.inlinepatterns.handleAttributes(element.text, | ||
| 282 | element) | ||
| 283 | i = 0 | ||
| 284 | for newChild in lst: | ||
| 285 | # Processing attributes | ||
| 286 | if newChild.tail: | ||
| 287 | newChild.tail = \ | ||
| 288 | markdown.inlinepatterns.handleAttributes(newChild.tail, | ||
| 278 | if markdown.ENABLE_ATTRIBUTES: | ||
| 279 | for element, lst in insertQueue: | ||
| 280 | if element.text: | ||
| 281 | element.text = \ | ||
| 282 | markdown.inlinepatterns.handleAttributes(element.text, | ||
| 289 | 283 | element) | |
| 290 | if newChild.text: | ||
| 291 | newChild.text = \ | ||
| 292 | markdown.inlinepatterns.handleAttributes(newChild.text, | ||
| 293 | newChild) | ||
| 294 | element.insert(i, newChild) | ||
| 295 | i += 1 | ||
| 284 | i = 0 | ||
| 285 | for newChild in lst: | ||
| 286 | # Processing attributes | ||
| 287 | if newChild.tail: | ||
| 288 | newChild.tail = \ | ||
| 289 | markdown.inlinepatterns.handleAttributes(newChild.tail, | ||
| 290 | element) | ||
| 291 | if newChild.text: | ||
| 292 | newChild.text = \ | ||
| 293 | markdown.inlinepatterns.handleAttributes(newChild.text, | ||
| 294 | newChild) | ||
| 295 | element.insert(i, newChild) | ||
| 296 | i += 1 | ||
| 296 | 297 | return tree | |
| 297 | 298 | ||
| 298 | 299 |

