mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Rename function.
This commit is contained in:
parent
3ca59beaf5
commit
b95f9949be
@ -705,7 +705,7 @@ class Textile(object):
|
|||||||
result.append(line)
|
result.append(line)
|
||||||
return ''.join(result)
|
return ''.join(result)
|
||||||
|
|
||||||
def glyphs_only(self, text):
|
def macros_only(self, text):
|
||||||
# fix: hackish
|
# fix: hackish
|
||||||
text = re.sub(r'"\Z', '\" ', text)
|
text = re.sub(r'"\Z', '\" ', text)
|
||||||
|
|
||||||
@ -828,7 +828,7 @@ class Textile(object):
|
|||||||
'fooobar ... and hello world ...'
|
'fooobar ... and hello world ...'
|
||||||
"""
|
"""
|
||||||
|
|
||||||
text = self.glyphs_only(text)
|
text = self.macros_only(text)
|
||||||
punct = '!"#$%&\'*+,-./:;=?@\\^_`|~'
|
punct = '!"#$%&\'*+,-./:;=?@\\^_`|~'
|
||||||
|
|
||||||
pattern = r'''
|
pattern = r'''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user