pombreda / xhtml2pdf

Automatically exported from code.google.com/p/xhtml2pdf
GNU General Public License v2.0
0 stars 0 forks source link

2 semicolons will cause a "CSSParseError: Declaration group closing".... #74

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. xhtml2pdf bad_example.html
2.
3.

What is the expected output? What do you see instead?
Converting bad_example.html to /home/me/work/elance/form/bad_example.pdf...
ERROR [ho.pisa] Document error
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/sx/pisa3/pisa_document.py", line 117, in pisaDocument
    c = pisaStory(src, path, link_callback, debug, default_css, xhtml, encoding, c=c, xml_output=xml_output)
  File "/usr/lib/pymodules/python2.7/sx/pisa3/pisa_document.py", line 62, in pisaStory
    pisaParser(src, c, default_css, xhtml, encoding, xml_output)
  File "/usr/lib/pymodules/python2.7/sx/pisa3/pisa_parser.py", line 616, in pisaParser
    c.parseCSS()
  File "/usr/lib/pymodules/python2.7/sx/pisa3/pisa_context.py", line 535, in parseCSS
    self.css = self.cssParser.parse(self.cssText)
  File "/usr/lib/pymodules/python2.7/sx/w3c/cssParser.py", line 358, in parse
    src, stylesheet = self._parseStylesheet(src)
  File "/usr/lib/pymodules/python2.7/sx/w3c/cssParser.py", line 458, in _parseStylesheet
    src, ruleset = self._parseRuleset(src)
  File "/usr/lib/pymodules/python2.7/sx/w3c/cssParser.py", line 737, in _parseRuleset
    src, properties = self._parseDeclarationGroup(src.lstrip())
  File "/usr/lib/pymodules/python2.7/sx/w3c/cssParser.py", line 922, in _parseDeclarationGroup
    raise self.ParseError('Declaration group closing \'}\' not found', src, ctxsrc)
CSSParseError: Declaration group closing '}' not found:: (u'{\n                
float:none;\n                text-align:left;', u';\n                ma')
*** ERRORS OCCURED

What version of the product are you using? On what operating system?
pisa 3.0.32 (Build 2009-05-04)
This is on ubuntu 12.04lts

Please provide any additional information below.
see line 74 of the attached file.

Original issue reported on code.google.com by ERikel...@gmail.com on 28 Jan 2013 at 10:57

Attachments: