Classic StructuredText format converter.
This converter supports translating StructuredText (see
happydoc/hddocstring/StructuredText/ClassicStructuredText.py)
input to HTML output.
Base Classes
|
|
happydoclib.happydocstring.HappyDocStringConverterBase
|
Methods
|
|
_testOutputFormat
convert
quote
|
|
_testOutputFormat
|
_testOutputFormat ( self, outputFormat )
Exceptions
|
|
ValueError('Unrecognized output format "%s" for %s.' %( outputFormat, self.__class__.__name__, ) )
|
|
|
convert
|
convert (
self,
inputText,
outputFormat,
level=3,
*args,
*namedArgs,
)
Returns the inputText data translated into the outputFormat .
Parameters:
-
inputText
- String or other sequence of characters to be
converted. This string should be in the format advertised
by the docstring converter.
-
outputFormat
- String defined by the docstring converter
class to represent a supported output scheme. This value is
converter-specific, and not all converters will support the
same output formats.
-
level=3
- Beginning indention level for the text. This
controls what type of header elements are created among
other behaviors.
|
|
quote
|
quote (
self,
inputText,
outputFormat,
*args,
*namedArgs,
)
Returns the inputText quoted in a way that special characters are escaped.
Parameters:
-
inputText
- String or other sequence of characters to be
converted. This string should be in the format advertised
by the docstring converter.
-
outputFormat
- String defined by the docstring converter
class to represent a supported output scheme. This value is
converter-specific, and not all converters will support the
same output formats.
-
*args
- Additional, converter-specific, positional arguments.
-
**namedArgs
- Additional, converter-specific, named arguments.
|
|