Python docutils.parsers.rst.directives.positive_int_list() Examples
The following are 1
code examples of docutils.parsers.rst.directives.positive_int_list().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
docutils.parsers.rst.directives
, or try the search function
.
Example #1
Source File: pygments_code_block_directive.py From rst2pdf with MIT License | 5 votes |
def string_list(argument): """ Converts a space- or comma-separated list of values into a python list of strings. (Directive option conversion function) Based in positive_int_list of docutils.parsers.rst.directives """ if ',' in argument: entries = argument.split(',') else: entries = argument.split() return entries