mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
version 0.3.100
This commit is contained in:
parent
e39dc4223f
commit
4cbd77b48e
@ -13,7 +13,7 @@
|
|||||||
## with this program; if not, write to the Free Software Foundation, Inc.,
|
## with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
''' E-book management software'''
|
''' E-book management software'''
|
||||||
__version__ = "0.3.99"
|
__version__ = "0.3.100"
|
||||||
__docformat__ = "epytext"
|
__docformat__ = "epytext"
|
||||||
__author__ = "Kovid Goyal <kovid@kovidgoyal.net>"
|
__author__ = "Kovid Goyal <kovid@kovidgoyal.net>"
|
||||||
__appname__ = 'libprs500'
|
__appname__ = 'libprs500'
|
||||||
|
@ -136,7 +136,7 @@ def option_parser(usage):
|
|||||||
help='''A regular expression. <a> tags whoose href '''
|
help='''A regular expression. <a> tags whoose href '''
|
||||||
'''matches will be ignored. Defaults to %default''')
|
'''matches will be ignored. Defaults to %default''')
|
||||||
chapter = parser.add_option_group('CHAPTER OPTIONS')
|
chapter = parser.add_option_group('CHAPTER OPTIONS')
|
||||||
chapter.add_option('--disable-chapter-detection', action='store_false',
|
chapter.add_option('--disable-chapter-detection', action='store_true',
|
||||||
default=False, dest='disable_chapter_detection',
|
default=False, dest='disable_chapter_detection',
|
||||||
help='''Prevent html2lrf from automatically inserting page breaks'''
|
help='''Prevent html2lrf from automatically inserting page breaks'''
|
||||||
''' before what it thinks are chapters.''')
|
''' before what it thinks are chapters.''')
|
||||||
|
@ -86,14 +86,15 @@ def build_index(title, articles, dir):
|
|||||||
src = '''\
|
src = '''\
|
||||||
<html>
|
<html>
|
||||||
<body>
|
<body>
|
||||||
<h1>The New York Times</h1>
|
<h1>%(title)S</h1>
|
||||||
<div style='text-align: right; font-weight: bold'>%(date)s</div>
|
<div style='text-align: right; font-weight: bold'>%(date)s</div>
|
||||||
<ul>
|
<ul>
|
||||||
%(categories)s
|
%(categories)s
|
||||||
</ul>
|
</ul>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
'''%dict(date=time.strftime('%a, %d %B, %Y', time.localtime()), categories=clist)
|
'''%dict(date=time.strftime('%a, %d %B, %Y', time.localtime()),
|
||||||
|
categories=clist, title=title)
|
||||||
index = os.path.join(dir, 'index.html')
|
index = os.path.join(dir, 'index.html')
|
||||||
open(index, 'wb').write(src.encode('utf-8'))
|
open(index, 'wb').write(src.encode('utf-8'))
|
||||||
return index
|
return index
|
||||||
|
Loading…
x
Reference in New Issue
Block a user