mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-20 17:16:05 +01:00
oops
This commit is contained in:
parent
6429bbd65a
commit
c6c84a45b5
2 changed files with 3 additions and 3 deletions
|
|
@ -13,7 +13,7 @@
|
|||
## with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
''' E-book management software'''
|
||||
__version__ = "0.3.60"
|
||||
__version__ = "0.3.61"
|
||||
__docformat__ = "epytext"
|
||||
__author__ = "Kovid Goyal <kovid@kovidgoyal.net>"
|
||||
__appname__ = 'libprs500'
|
||||
|
|
|
|||
|
|
@ -229,8 +229,8 @@ class HTMLConverter(object):
|
|||
(re.compile(r"<\s*style.*?>(.*?)<\/\s*style\s*>", re.DOTALL|re.IGNORECASE),
|
||||
lambda match: match.group().replace('<!--', '').replace('-->', '')),
|
||||
# remove <p> tags from within <a> tags
|
||||
(re.compile(r'<a.*?>.*?(<p.*?>)', re.DOTALL|re.IGNORECASE),
|
||||
lambda match: match.group().replace(match.group(1), '')),
|
||||
(re.compile(r'<a.*?>(.*?)</a\s*>', re.DOTALL|re.IGNORECASE),
|
||||
lambda match: re.compile(r'<.*?p.*?>', re.IGNORECASE).sub('', match.group())),
|
||||
]
|
||||
# Fix Baen markup
|
||||
BAEN_SANCTIFY = [(re.compile(r'<\s*[Aa]\s+id="p[0-9]+"\s+name="p[0-9]+"\s*>\s*<\/[Aa]>'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue