|
From: Adam C. <ad...@ch...> - 2002-07-26 10:43:04
|
Hi.
I have added an option to disable inclusion of the docinfo section in the
generated documents. You can see the relevant changes in the diffs below.
If nobody objects, I would like to commit this to CVS...
diff -u -r1.12 frontend.py
--- frontend.py 25 Jul 2002 01:47:58 -0000 1.12
+++ frontend.py 26 Jul 2002 10:40:24 -0000
@@ -52,6 +52,10 @@
('Do not include a "View document source" link.',
['--no-source-link'], {'action': 'store_false',
'dest': 'source_link'}),
+ ('Include the docinfo section. This is the default.',
+ ['--docinfo'], {'action': 'store_true', 'default': 1}),
+ ('Do not include the docinfo section.',
+ ['--no-docinfo'], {'action': 'store_false', 'dest': 'docinfo'}),
('Enable backlinks from section headers to table of contents '
'entries. This is the default.',
['--toc-entry-backlinks'],
diff -u -r1.4 frontmatter.py
--- transforms/frontmatter.py 11 Jul 2002 01:50:40 -0000 1.4
+++ transforms/frontmatter.py 26 Jul 2002 10:41:06 -0000
@@ -239,7 +239,8 @@
document[index] = remainder
else:
del document[index]
- document[biblioindex:biblioindex] = nodelist
+ if document.options.docinfo:
+ document[biblioindex:biblioindex] = nodelist
return
def extract_bibliographic(self, field_list):
---
Adam Chodorowski <ad...@ch...>
Unseen University had never admitted women, muttering something about
problems with the plumbing, but the real reason was an unspoken dread that
if women were allowed to mess around with magic they would probably be
embarrassingly good at it ...
-- Terry Pratchett, "The Light Fantastic"
|