Bug 891156

Summary: [abrt] python-xhtml2pdf-0.0.3-3.fc17: cssParser.py:922:_parseDeclarationGroup:CSSParseError: Declaration group closing '}' not found:: (u'{\n\tmargin-left: 10%\n\tmargin-rightt', u': 10%\n\theight: 25px;')
Product: [Fedora] Fedora Reporter: Bill Thielman <b.thielman>
Component: python-xhtml2pdfAssignee: Matthias Runge <mrunge>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: mrunge
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:71be111d9bcf0d8c5d6f2727005b119224b64e03
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-10 09:15:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: environ
none
File: executable
none
File: smolt_data
none
File: core_backtrace none

Description Bill Thielman 2013-01-02 03:32:38 UTC
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

Comment 1 Bill Thielman 2013-01-02 03:32:42 UTC
Created attachment 671229 [details]
File: environ

Comment 2 Bill Thielman 2013-01-02 03:32:43 UTC
Created attachment 671230 [details]
File: executable

Comment 3 Bill Thielman 2013-01-02 03:32:45 UTC
Created attachment 671231 [details]
File: smolt_data

Comment 4 Bill Thielman 2013-01-02 03:32:47 UTC
Created attachment 671232 [details]
File: core_backtrace

Comment 5 Matthias Runge 2013-01-10 09:15:44 UTC
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.