reportlab/platypus/paraparser.py
changeset 494 54257447cfe9
parent 433 7cc80d826fe1
child 506 68bd275f16e2
equal deleted inserted replaced
493:89dbc0b19ede 494:54257447cfe9
     1 ###############################################################################
     1 #copyright ReportLab Inc. 2000
     2 #
     2 #see license.txt for license details
     3 #	ReportLab Public License Version 1.0
     3 #history http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/reportlab/platypus/paraparser.py?cvsroot=reportlab
     4 #
     4 #$Header: /tmp/reportlab/reportlab/platypus/paraparser.py,v 1.28 2000/10/25 08:57:45 rgbecker Exp $
     5 #   Except for the change of names the spirit and intention of this
     5 __version__=''' $Id: paraparser.py,v 1.28 2000/10/25 08:57:45 rgbecker Exp $ '''
     6 #   license is the same as that of Python
       
     7 #
       
     8 #	(C) Copyright ReportLab Inc. 1998-2000.
       
     9 #
       
    10 #
       
    11 # All Rights Reserved
       
    12 #
       
    13 # Permission to use, copy, modify, and distribute this software and its
       
    14 # documentation for any purpose and without fee is hereby granted, provided
       
    15 # that the above copyright notice appear in all copies and that both that
       
    16 # copyright notice and this permission notice appear in supporting
       
    17 # documentation, and that the name of ReportLab not be used
       
    18 # in advertising or publicity pertaining to distribution of the software
       
    19 # without specific, written prior permission. 
       
    20 # 
       
    21 #
       
    22 # Disclaimer
       
    23 #
       
    24 # ReportLab Inc. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
       
    25 # SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
       
    26 # IN NO EVENT SHALL ReportLab BE LIABLE FOR ANY SPECIAL, INDIRECT
       
    27 # OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
       
    28 # OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
       
    29 # OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
       
    30 # PERFORMANCE OF THIS SOFTWARE. 
       
    31 #
       
    32 ###############################################################################
       
    33 #	$Log: paraparser.py,v $
       
    34 #	Revision 1.27  2000/08/17 15:05:51  rgbecker
       
    35 #	Changed test formatting
       
    36 #
       
    37 #	Revision 1.26  2000/07/10 23:53:46  andy_robinson
       
    38 #	Changed base of seqdefault tag to 0
       
    39 #	
       
    40 #	Revision 1.25  2000/07/04 10:50:33  rgbecker
       
    41 #	Sequencer fixes
       
    42 #	
       
    43 #	Revision 1.24  2000/06/19 11:14:03  andy_robinson
       
    44 #	Global sequencer put in the 'story builder'.
       
    45 #	
       
    46 #	Revision 1.23  2000/06/13 04:11:49  aaron_watters
       
    47 #	noted replication of XML markup comment between paraparser.py and paragraph.py
       
    48 #	
       
    49 #	Revision 1.22  2000/06/12 11:27:17  andy_robinson
       
    50 #	Added Sequencer and associated XML tags
       
    51 #	
       
    52 #	Revision 1.21  2000/06/01 15:23:06  rgbecker
       
    53 #	Platypus re-organisation
       
    54 #	
       
    55 #	Revision 1.20  2000/05/31 10:12:20  rgbecker
       
    56 #	<bullet> xml tag added
       
    57 #	
       
    58 #	Revision 1.19  2000/05/26 09:49:23  rgbecker
       
    59 #	Color fixes; thanks to J Alet
       
    60 #	
       
    61 #	Revision 1.18  2000/05/20 15:36:42  andy_robinson
       
    62 #	Removed 1.5.2-style getattr call
       
    63 #	
       
    64 #	Revision 1.17  2000/05/16 14:28:55  rgbecker
       
    65 #	Fixes/Changes to get testplatypus to work with new framework
       
    66 #	
       
    67 #	Revision 1.16  2000/05/15 12:15:29  rgbecker
       
    68 #	CDATA handler added
       
    69 #	
       
    70 #	Revision 1.15  2000/05/13 16:04:06  rgbecker
       
    71 #	made size alias of fontsize for <para>
       
    72 #	
       
    73 #	Revision 1.14  2000/05/11 14:05:17  rgbecker
       
    74 #	Use reportlab.lib.xmllib
       
    75 #	
       
    76 #	Revision 1.13  2000/04/25 13:07:57  rgbecker
       
    77 #	Added license
       
    78 #	
       
    79 __version__=''' $Id: paraparser.py,v 1.27 2000/08/17 15:05:51 rgbecker Exp $ '''
       
    80 import string
     6 import string
    81 import re
     7 import re
    82 from types import TupleType
     8 from types import TupleType
    83 import sys
     9 import sys
    84 import os
    10 import os