sub do_cmd_nodename{ return do_cmd_label($_[0]); }
sub init_myformat(){
- $anchor_invisible_mark = ' ';
- $anchor_invisible_mark2 = '';
- $anchor_mark = '';
+ # 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'} = '';
}
init_myformat();