diff options
author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2010-11-30 11:59:33 +0000 |
---|---|---|
committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2010-11-30 11:59:33 +0000 |
commit | c5880303ec69f984827af77f08cf3d9a54f83cd2 (patch) | |
tree | 8730121b4af5e5ae5a3d01f5f8b3027b394aeef6 /sandbox/code-block-directive/tools | |
parent | 976cec43efc64e68a9e2a1fc27135a11b27938aa (diff) | |
download | docutils-c5880303ec69f984827af77f08cf3d9a54f83cd2.tar.gz |
Prepare CodeBlock directive for inclusion in the Docutils core.
Rename directive and class from "code-block" to "code".
Fix fallback if pygments not found.
Use class-based interface.
Add "number-lines" option.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@6488 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'sandbox/code-block-directive/tools')
-rwxr-xr-x | sandbox/code-block-directive/tools/test_pygments_code_block_directive.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sandbox/code-block-directive/tools/test_pygments_code_block_directive.py b/sandbox/code-block-directive/tools/test_pygments_code_block_directive.py index 9d0ea510a..def706889 100755 --- a/sandbox/code-block-directive/tools/test_pygments_code_block_directive.py +++ b/sandbox/code-block-directive/tools/test_pygments_code_block_directive.py @@ -39,7 +39,7 @@ unstyled_tokens = [''] # ---------------------- document = utils.new_document('generated') -literal_block = nodes.literal_block(classes=["code-block", language]) +literal_block = nodes.literal_block(classes=["code", language]) document += literal_block |