From 17dfb24f7f6b6bfd64d0c8c5aa0fc8cebcc40b1f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 25 May 2007 18:41:53 +0000 Subject: [PATCH] Clean up help text. --- .project | 1 + src/libprs500/__init__.py | 2 +- src/libprs500/ebooks/lrf/__init__.py | 4 ++-- src/libprs500/ebooks/lrf/html/convert_from.py | 10 +++++----- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.project b/.project index e988877507..684c2fe798 100644 --- a/.project +++ b/.project @@ -3,6 +3,7 @@ libprs500 + ipython diff --git a/src/libprs500/__init__.py b/src/libprs500/__init__.py index 5449f0ac1f..98fcddd6dd 100644 --- a/src/libprs500/__init__.py +++ b/src/libprs500/__init__.py @@ -33,7 +33,7 @@ You may have to adjust the GROUP and the location of the rules file to suit your distribution. """ -__version__ = "0.3.40" +__version__ = "0.3.41" __docformat__ = "epytext" __author__ = "Kovid Goyal " diff --git a/src/libprs500/ebooks/lrf/__init__.py b/src/libprs500/ebooks/lrf/__init__.py index 8aab6e7c38..7c778b31d2 100644 --- a/src/libprs500/ebooks/lrf/__init__.py +++ b/src/libprs500/ebooks/lrf/__init__.py @@ -69,8 +69,8 @@ def option_parser(usage): parser.add_option('-p', '--profile', default=PRS500_PROFILE, dest='profile', type='choice', choices=profiles, action='callback', callback=profile_from_string, help='''Profile of the target device for which this LRF is ''' - '''being generated. Default: ''' + profiles[0] + ''' - Supported profiles: '''+', '.join(profiles)) + '''being generated. Default: ''' + profiles[0] + \ + ''' Supported profiles: '''+', '.join(profiles)) debug = parser.add_option_group('DEBUG OPTIONS') debug.add_option('--verbose', dest='verbose', action='store_true', default=False, help='''Be verbose while processing''') diff --git a/src/libprs500/ebooks/lrf/html/convert_from.py b/src/libprs500/ebooks/lrf/html/convert_from.py index 64c6b7dabc..0e4fe87d63 100644 --- a/src/libprs500/ebooks/lrf/html/convert_from.py +++ b/src/libprs500/ebooks/lrf/html/convert_from.py @@ -1241,9 +1241,9 @@ def parse_options(argv=None, cli=True): laf.add_option('--cover', action='store', dest='cover', default=None, \ help='Path to file containing image to be used as cover') laf.add_option('--font-delta', action='store', type='int', default=0, \ - help="""Increase the font size by 2 * FONT_DELTA pts and - the line spacing by FONT_DELTA pts. - If FONT_DELTA is negative, the font size is decreased.""", + help="""Increase the font size by 2 * FONT_DELTA pts and """ + '''the line spacing by FONT_DELTA pts. ''' + """If FONT_DELTA is negative, the font size is decreased.""", dest='font_delta') laf.add_option('--disable-autorotation', action='store_true', default=False, help='Disable autorotation of images.', dest='disable_autorotation') @@ -1260,11 +1260,11 @@ def parse_options(argv=None, cli=True): chapter.add_option('--disable-chapter-detection', action='store_false', default=True, dest='chapter_detection', help='''Prevent html2lrf from automatically inserting page breaks''' - '''before what it thinks are chapters.''') + ''' before what it thinks are chapters.''') chapter.add_option('--chapter-regex', dest='chapter_regex', default='chapter|book|appendix', help='''The regular expression used to detect chapter titles.''' - '''It is searched for in heading tags. Defaults to %default''') + ''' It is searched for in heading tags. Defaults to %default''') chapter.add_option('--page-break-before', dest='page_break', default='h[12]', help='''If html2lrf does not find any page breaks in the ''' '''html file and cannot detect chapter headings, it will '''