mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-27 01:24:50 +01:00
Markdown input: Fix handling of very large files. Fixes #1212330 [Markdown converter produces garbled output on large files](https://bugs.launchpad.net/calibre/+bug/1212330)
This commit is contained in:
parent
91e12f10ca
commit
aea318aaee
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@
|
|||
ETX = '\u0003' # Use ETX ("End of text") for end-of-placeholder
|
||||
INLINE_PLACEHOLDER_PREFIX = STX+"klzzwxh:"
|
||||
INLINE_PLACEHOLDER = INLINE_PLACEHOLDER_PREFIX + "%s" + ETX
|
||||
INLINE_PLACEHOLDER_RE = re.compile(INLINE_PLACEHOLDER % r'([0-9]{4})')
|
||||
INLINE_PLACEHOLDER_RE = re.compile(INLINE_PLACEHOLDER % r'([0-9]+)')
|
||||
AMP_SUBSTITUTE = STX+"amp"+ETX
|
||||
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue