src/reportlab/platypus/paraparser.py
changeset 4077 ac3fcb7cc6f4
parent 4067 712e1822ca31
child 4097 1c2ebf285cb7
equal deleted inserted replaced
4076:777af896ef28 4077:ac3fcb7cc6f4
  1006         return A
  1006         return A
  1007 
  1007 
  1008     #----------------------------------------------------------------
  1008     #----------------------------------------------------------------
  1009 
  1009 
  1010     def __init__(self,verbose=0, caseSensitive=0, ignoreUnknownTags=1):
  1010     def __init__(self,verbose=0, caseSensitive=0, ignoreUnknownTags=1):
  1011         HTMLParser.__init__(self)
  1011         HTMLParser.__init__(self,
       
  1012             **(dict(convert_charrefs=False) if sys.version_info>=(3,4) else {}))
  1012         self.verbose = verbose
  1013         self.verbose = verbose
  1013         #HTMLParser is cas insenstive anyway, but the rml interface still needs this
  1014         #HTMLParser is case insenstive anyway, but the rml interface still needs this
  1014         #all start/end_ methods should have a lower case version for HMTMParser
  1015         #all start/end_ methods should have a lower case version for HMTMParser
  1015         self.caseSensitive = caseSensitive
  1016         self.caseSensitive = caseSensitive
  1016         self.ignoreUnknownTags = ignoreUnknownTags
  1017         self.ignoreUnknownTags = ignoreUnknownTags
  1017 
  1018 
  1018     def _iReset(self):
  1019     def _iReset(self):