-í
G2×;c       s%    d  Z  " $ h  d d <d d <d d <d d <d	 d
 <d d <d d <d d <Z 5 y 6 e d i d ƒ d Z Wn 7 8 d Z n X= d k Z B d k Z C d k Z I d „  Z R d e i i	 f d „  ƒ  YZ
 e d e i i f d „  ƒ  YZ ¯ d e i i f d „  ƒ  YZ d S(   s°   Plan text format converter.

    This is *not* the same as the RawText converter, which is a
    pass-through converter.  This converter will actually modify some
    output.

s$   $RCSfile: docstring_PlainText.py,v $s   module_namesH   $Id: docstring_PlainText.py,v 1.1 2001/10/24 21:27:35 doughellmann Exp $s   rcs_ids(   Doug Hellmann <DougHellmann@bigfoot.com>s   creators   UNSPECIFIEDs   projects   Wed, 26-Sep-2001 09:52:01 EDTs   createds   $Author: doughellmann $s   authors   $Revision: 1.1 $s   versions   $Date: 2001/10/24 21:27:35 $s   dates    i   s   0.0Nc      s,   I J K h  d d <t  d <g  d <Sd S(   s;   Return information about this module to the dynamic loader.s	   PlainTexts   names   factorys   filenamePatternListN(   s   PlainTextConverter(    (    (    sg   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/docstring/docstring_PlainText.pys
   entryPointI s   s   PlainTextFilec      s&   R d  Z  T U d Z W e d „ Z RS(   s0   External documentation in PlainText format.
    s	   PlainTextc    s   W X t  i i i |  Z | [ | ƒ \ |  i i d ƒ } ] xE | D] ]: } ^ | i ƒ  } _ | o
 ` qD n a | |  _ b PqD Wc d  Sd  S(   Ns   
(   s   happydoclibs   happydocstrings   ExternalDocumentationFileBases   __init__s   selfs   filenames   bodys   _file_contentss   splits   liness	   body_lines   strips	   _oneliner(   s   selfs   filenames   bodys	   body_lines   lines(    (    sg   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/docstring/docstring_PlainText.pys   __init__W s   

 	
(   s   __doc__s   _input_types   Nones   __init__(    (    (    sg   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/docstring/docstring_PlainText.pys   PlainTextFileR s   		s   PlainTextConverterc      sS   e d  Z  l n e Z p d g Z q d Z s d „  Z { d d „ Z “ d „  Z RS(   s¸   PlainText format converter.

    This is *not* the same as the RawText converter, which is a
    pass-through converter.  This converter will actually modify some
    output.
    
    s   htmls	   PlainTextc    s=   s t | |  i j o# u t d | |  i i f ƒ ‚ n d  S(   Ns'   Unrecognized output format "%s" for %s.(   s   outputFormats   selfs   RECOGNIZED_OUTPUT_FORMATSs
   ValueErrors	   __class__s   __name__(   s   selfs   outputFormat(    (    sg   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/docstring/docstring_PlainText.pys   _testOutputFormats s   i   c    sF   {  Ž |  i | ƒ  | d j o  d t | ƒ Sn ‘ | Sd S(   s¯  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.
        
        s   htmls   <pre>
%s
</pre>N(   s   selfs   _testOutputFormats   outputFormats   strs	   inputText(   s   selfs	   inputTexts   outputFormats   levels   argss	   namedArgs(    (    sg   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/docstring/docstring_PlainText.pys   convert{ s
   c    s^   “ ¥ ¦ |  i | ƒ § | d j o- ¨ t t i i i © | f | ª | ƒ Sn ¬ | Sd S(   s³  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.
          
        s   htmlN(   s   selfs   _testOutputFormats   outputFormats   applys   happydoclibs	   docstrings   StructuredTexts
   html_quotes	   inputTexts   argss	   namedArgs(   s   selfs	   inputTexts   outputFormats   argss	   namedArgs(    (    sg   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/docstring/docstring_PlainText.pys   quote“ s   (   s   __doc__s   PlainTextFiles   externalDocumentFactorys   RECOGNIZED_OUTPUT_FORMATSs   _input_types   _testOutputFormats   converts   quote(    (    (    sg   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/docstring/docstring_PlainText.pys   PlainTextConvertere s   			s   PlainTextUnitTestc      s   ¯ ² d „  Z  RS(   Nc    s„   ² ³ d } · t d d d | ƒ } ¸ t o | p
 t d ‚ ¹ d } º t o' | i ƒ  | j p t d | i ƒ  ‚ ¼ d  Sd  S(   NsF   This is the one liner.

        Here is some additional text.
        s   filenames   internals   bodys$   Unable to create valid PlainTextFiles   This is the one liner.s   Got different one-liner "%s"(   s   bodys   PlainTextFiles   ptfs	   __debug__s   AssertionErrors   expected_oneliners   oneLiner(   s   selfs   bodys   ptfs   expected_oneliner(    (    sg   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/docstring/docstring_PlainText.pys   testPlainTextOneLiner² s   		1(   s   testPlainTextOneLiner(    (    (    sg   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/docstring/docstring_PlainText.pys   PlainTextUnitTest¯ s   (   s   __doc__s   __rcs_info__s   splits   __version__s   strings$   happydoclib.docstring.StructuredTexts   happydoclibs
   entryPoints   happydocstrings   ExternalDocumentationFileBases   PlainTextFiles   HappyDocStringConverterBases   PlainTextConverters   DocStringConverterTests   PlainTextUnitTest(   s   PlainTextConverters   PlainTextFiles
   entryPoints   strings   PlainTextUnitTests   __version__s   happydoclibs   __rcs_info__(    (    sg   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/docstring/docstring_PlainText.pys   ?" s   Q	J