mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
__repr__ for font-face rule
This commit is contained in:
parent
70ec3dba42
commit
8ec267ae38
@ -7,7 +7,7 @@ __license__ = 'GPL v3'
|
|||||||
__copyright__ = '2014, Kovid Goyal <kovid at kovidgoyal.net>'
|
__copyright__ = '2014, Kovid Goyal <kovid at kovidgoyal.net>'
|
||||||
|
|
||||||
|
|
||||||
from .css21 import CSS21Parser, ParseError
|
from tinycss.css21 import CSS21Parser, ParseError
|
||||||
|
|
||||||
class FontFaceRule(object):
|
class FontFaceRule(object):
|
||||||
|
|
||||||
@ -18,6 +18,10 @@ class FontFaceRule(object):
|
|||||||
self.line = line
|
self.line = line
|
||||||
self.column = column
|
self.column = column
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return ('<{0.__class__.__name__} at {0.line}:{0.column}>'
|
||||||
|
.format(self))
|
||||||
|
|
||||||
class CSSFonts3Parser(CSS21Parser):
|
class CSSFonts3Parser(CSS21Parser):
|
||||||
|
|
||||||
''' Parse @font-face rules from the CSS 3 fonts module '''
|
''' Parse @font-face rules from the CSS 3 fonts module '''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user