Description of problem: attempted to convert an html file to pdf Version-Release number of selected component: python-xhtml2pdf-0.0.3-3.fc17 Additional info: libreport version: 2.0.18 abrt_version: 2.0.18 cmdline: /usr/bin/python /usr/bin/pisa --css ged_helpers.css Operations/Int-Sign-Rules/index.html Int-Sign-Rules.pdf kernel: 3.6.10-2.fc17.i686 backtrace: :cssParser.py:922:_parseDeclarationGroup:CSSParseError: Declaration group closing '}' not found:: (u'{\n\tmargin-left: 10%\n\tmargin-rightt', u': 10%\n\theight: 25px;') : :Traceback (most recent call last): : File "/usr/bin/pisa", line 9, in <module> : load_entry_point('xhtml2pdf==0.0.3', 'console_scripts', 'pisa')() : File "/usr/lib/python2.7/site-packages/xhtml2pdf/pisa.py", line 173, in command : execute() : File "/usr/lib/python2.7/site-packages/xhtml2pdf/pisa.py", line 425, in execute : xml_output = xml_output, : File "/usr/lib/python2.7/site-packages/xhtml2pdf/document.py", line 85, in pisaDocument : encoding, context=context, xml_output=xml_output) : File "/usr/lib/python2.7/site-packages/xhtml2pdf/document.py", line 56, in pisaStory : pisaParser(src, context, default_css, xhtml, encoding, xml_output) : File "/usr/lib/python2.7/site-packages/xhtml2pdf/parser.py", line 649, in pisaParser : context.parseCSS() : File "/usr/lib/python2.7/site-packages/xhtml2pdf/context.py", line 479, in parseCSS : self.css = self.cssParser.parse(self.cssText) : File "/usr/lib/python2.7/site-packages/xhtml2pdf/w3c/cssParser.py", line 357, in parse : src, stylesheet = self._parseStylesheet(src) : File "/usr/lib/python2.7/site-packages/xhtml2pdf/w3c/cssParser.py", line 457, in _parseStylesheet : src, ruleset = self._parseRuleset(src) : File "/usr/lib/python2.7/site-packages/xhtml2pdf/w3c/cssParser.py", line 737, in _parseRuleset : src, properties = self._parseDeclarationGroup(src.lstrip()) : File "/usr/lib/python2.7/site-packages/xhtml2pdf/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\tmargin-left: 10%\n\tmargin-rightt', u': 10%\n\theight: 25px;') : :Local variables in innermost frame: :src: u': 10%\n\theight: 25px;\n\tposition: relative;\n\n\t}\n\n.clearfooter\n\t{\n\theight: 25px;\n\tclear: both;\n\t}\n\nhr\n\t{\n\twidth:60%;\n\tcolor:blue;\n\tsize:3;\n\t}\n\np,li,dl\n\t{\n\tmargin-left:20%;\n\tmargin-right:20%;\n\tfont-size:large;\n\t}\n\nh2,h3\n\t{\n\tmargin-left:20%;\n\t}\n\nbody\n\t{\n\tbackground-image: url("POE.png");\n\tbackground-attachment: repeat;\n\t}\n\n\nth,td\n\t{\n\tfont-size:large;\n\tpadding:5px;\n\t}\n\ntable\n\t{\n\tborder:2px black;\n\tborder-width:1px;\n\tfont-size:large;\n\tpadding:2px;\n\t}\n@import "../../ged_helpers.css" all;\n' :self: <xhtml2pdf.context.pisaCSSParser object at 0xa323ecc> :ctxsrc: u'{\n\tmargin-left: 10%\n\tmargin-rightt: 10%\n\theight: 25px;\n\tposition: relative;\n\n\t}\n\n.clearfooter\n\t{\n\theight: 25px;\n\tclear: both;\n\t}\n\nhr\n\t{\n\twidth:60%;\n\tcolor:blue;\n\tsize:3;\n\t}\n\np,li,dl\n\t{\n\tmargin-left:20%;\n\tmargin-right:20%;\n\tfont-size:large;\n\t}\n\nh2,h3\n\t{\n\tmargin-left:20%;\n\t}\n\nbody\n\t{\n\tbackground-image: url("POE.png");\n\tbackground-attachment: repeat;\n\t}\n\n\nth,td\n\t{\n\tfont-size:large;\n\tpadding:5px;\n\t}\n\ntable\n\t{\n\tborder:2px black;\n\tborder-width:1px;\n\tfont-size:large;\n\tpadding:2px;\n\t}\n@import "../../ged_helpers.css" all;\n' :property: (u'margin-left', [(u'10', u'%'), u'margin-rightt'], None) :properties: [(u'margin-left', [(u'10', u'%'), u'margin-rightt'], None)] :braces: True
Created attachment 671229 [details] File: environ
Created attachment 671230 [details] File: executable
Created attachment 671231 [details] File: smolt_data
Created attachment 671232 [details] File: core_backtrace
Thanks for your report! the error message states, in your ged_helpers.css is a '}' missing. So, I would close this as notabug, although I agree, just throwing a backtrace is not optimal.