summaryrefslogtreecommitdiffstats
path: root/Doc/perl
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2004-11-11 08:05:34 (GMT)
committerFred Drake <fdrake@acm.org>2004-11-11 08:05:34 (GMT)
commitaf305b1dabdcd6a7c1e203b63282008866c06345 (patch)
tree512458f5374d36f24bc56e0f692d9af47b52793d /Doc/perl
parent2269d865986dae552737fd0ffe86a58dd9f99dab (diff)
downloadcpython-af305b1dabdcd6a7c1e203b63282008866c06345.zip
cpython-af305b1dabdcd6a7c1e203b63282008866c06345.tar.gz
cpython-af305b1dabdcd6a7c1e203b63282008866c06345.tar.bz2
remove some generated cruft now that we avoid the removal of elements
with no content (due to the text_cleanup() override in l2hinit.perl)
Diffstat (limited to 'Doc/perl')
-rw-r--r--Doc/perl/python.perl15
1 files changed, 7 insertions, 8 deletions
diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl
index 48e3115..e956e15 100644
--- a/Doc/perl/python.perl
+++ b/Doc/perl/python.perl
@@ -743,16 +743,15 @@ sub idx_cmd_refstmodindex($){
sub do_cmd_nodename{ return do_cmd_label($_[0]); }
sub init_myformat(){
- # These markers must be non-empty or the main latex2html script
- # may remove a surrounding element that has not other content as
- # "extraneous"; this ensures these elements (usually hyperlink
- # targets) are not removed improperly. We use comments since
- # there's no meaningful actual content.
+ # This depends on the override of text_cleanup() in l2hinit.perl;
+ # if that function cleans out empty tags, the first three of these
+ # variables must be set to comments.
+ #
# Thanks to Dave Kuhlman for figuring why some named anchors were
# being lost.
- $anchor_invisible_mark = '<!--x-->';
- $anchor_invisible_mark2 = '<!--y-->';
- $anchor_mark = '<!--z-->';
+ $anchor_invisible_mark = '';
+ $anchor_invisible_mark2 = '';
+ $anchor_mark = '';
$icons{'anchor_mark'} = '';
}
init_myformat();