"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "xhtml2pdf/w3c/cssParser.py" between
xhtml2pdf-0.2.7.tar.gz and xhtml2pdf-0.2.8.tar.gz

About: xhtml2pdf is a HTML/CSS to PDF converter written in Python.

cssParser.py  (xhtml2pdf-0.2.7):cssParser.py  (xhtml2pdf-0.2.8)
skipping to change at line 785 skipping to change at line 785
""" """
XXX Proprietary for PDF XXX Proprietary for PDF
""" """
src = src[len('@frame '):].lstrip() src = src[len('@frame '):].lstrip()
box, src = self._getIdent(src) box, src = self._getIdent(src)
src, properties = self._parseDeclarationGroup(src.lstrip()) src, properties = self._parseDeclarationGroup(src.lstrip())
result = [self.cssBuilder.atFrame(box, properties)] result = [self.cssBuilder.atFrame(box, properties)]
return src.lstrip(), result return src.lstrip(), result
def _parseAtFontFace(self, src): def _parseAtFontFace(self, src):
src = src[len('@font-face '):].lstrip() src = src[len('@font-face'):].lstrip()
src, properties = self._parseDeclarationGroup(src) src, properties = self._parseDeclarationGroup(src)
result = [self.cssBuilder.atFontFace(properties)] result = [self.cssBuilder.atFontFace(properties)]
return src, result return src, result
def _parseAtIdent(self, src): def _parseAtIdent(self, src):
ctxsrc = src ctxsrc = src
atIdent, src = self._getIdent(src[1:]) atIdent, src = self._getIdent(src[1:])
if atIdent is None: if atIdent is None:
raise self.ParseError('At-rule expected an identifier for the rule', src, ctxsrc) raise self.ParseError('At-rule expected an identifier for the rule', src, ctxsrc)
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)