mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix bug #8986: Italicize patterns causing mess up html tags.
This commit is contained in:
parent
40d6c59e19
commit
d6c25bf7f6
@ -157,7 +157,7 @@ class HeuristicProcessor(object):
|
|||||||
|
|
||||||
ITALICIZE_STYLE_PATS = [
|
ITALICIZE_STYLE_PATS = [
|
||||||
r'(?msu)(?<=[\s>])_(?P<words>[^_]+)_',
|
r'(?msu)(?<=[\s>])_(?P<words>[^_]+)_',
|
||||||
r'(?msu)(?<=[\s>])/(?P<words>[^/]+)/',
|
r'(?msu)(?<=[\s>])/(?P<words>[^/\*>]+)/',
|
||||||
r'(?msu)(?<=[\s>])~~(?P<words>[^~]+)~~',
|
r'(?msu)(?<=[\s>])~~(?P<words>[^~]+)~~',
|
||||||
r'(?msu)(?<=[\s>])\*(?P<words>[^\*]+)\*',
|
r'(?msu)(?<=[\s>])\*(?P<words>[^\*]+)\*',
|
||||||
r'(?msu)(?<=[\s>])~(?P<words>[^~]+)~',
|
r'(?msu)(?<=[\s>])~(?P<words>[^~]+)~',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user