mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-23 14:56:28 +01:00
Fix #1158499 (ebook-convert help displays escape characters)
This commit is contained in:
parent
6ce4e61d4f
commit
3c32c36bf8
1 changed files with 1 additions and 3 deletions
|
|
@ -12,7 +12,6 @@
|
|||
|
||||
from calibre.utils.config import OptionParser
|
||||
from calibre.utils.logging import Log
|
||||
from calibre.constants import preferred_encoding
|
||||
from calibre.customize.conversion import OptionRecommendation
|
||||
from calibre import patheq
|
||||
from calibre.ebooks.conversion import ConversionUserFeedBack
|
||||
|
|
@ -53,8 +52,7 @@
|
|||
DEFAULT_TRUE_OPTIONS = HEURISTIC_OPTIONS + ['remove_fake_margins']
|
||||
|
||||
def print_help(parser, log):
|
||||
help = parser.format_help().encode(preferred_encoding, 'replace')
|
||||
log(help)
|
||||
parser.print_help()
|
||||
|
||||
def check_command_line_options(parser, args, log):
|
||||
if len(args) < 3 or args[1].startswith('-') or args[2].startswith('-'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue