[Python-checkins] python/dist/src/Doc/perl python.perl,1.138,1.139
fdrake at users.sourceforge.net
fdrake at users.sourceforge.net
Mon Aug 4 23:00:25 EDT 2003
Update of /cvsroot/python/python/dist/src/Doc/perl
In directory sc8-pr-cvs1:/tmp/cvs-serv26630
Modified Files:
python.perl
Log Message:
init_myformat(): None of the "mark" values can be empty strings, or
LaTeX2HTML feels free to remove a surrounding element that
contains no other content. Since such an element is typically a
named anchor used for hyperlinking, they should not be removed.
Unfortunatley, making sure these marks are non-empty is the most
direct way of avoiding this behavior.
Thanks to Dave Kuhlman for tracking this down; this was some excellent
detective work!
Index: python.perl
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/perl/python.perl,v
retrieving revision 1.138
retrieving revision 1.139
diff -C2 -d -r1.138 -r1.139
*** python.perl 5 Aug 2003 03:45:37 -0000 1.138
--- python.perl 5 Aug 2003 05:00:23 -0000 1.139
***************
*** 720,726 ****
sub init_myformat(){
! $anchor_invisible_mark = ' ';
! $anchor_invisible_mark2 = '';
! $anchor_mark = '';
$icons{'anchor_mark'} = '';
}
--- 720,733 ----
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.
! # Thanks to Dave Kuhlman for figuring why some named anchors were
! # being lost.
! $anchor_invisible_mark = '<!--x-->';
! $anchor_invisible_mark2 = '<!--y-->';
! $anchor_mark = '<!--z-->';
$icons{'anchor_mark'} = '';
}
More information about the Python-checkins
mailing list