Literal code blocks are introduced by ending a paragraph with the special marker ::. The literal block must be indented (and, like all paragraphs, separated from the surrounding ones by blank lines).
(self, code)
| 321 | self.new_paragraph() |
| 322 | |
| 323 | def codeblock(self, code): |
| 324 | """ |
| 325 | Literal code blocks are introduced by ending a paragraph with |
| 326 | the special marker ::. The literal block must be indented |
| 327 | (and, like all paragraphs, separated from the surrounding |
| 328 | ones by blank lines). |
| 329 | """ |
| 330 | self.start_codeblock() |
| 331 | self.doc.writeln(code) |
| 332 | self.end_codeblock() |
| 333 | |
| 334 | def toctree(self): |
| 335 | if self.doc.target == 'html': |