Commit aa99a507 authored by Fred Drake's avatar Fred Drake

Be a little more friendly for the generation of the text version: for

"blank" navigation icons, use ALT="" instead of ALT="blank"; also add
ALIGN=CENTER for the table, to get a slightly better affect in the
text (the table is full-width, so this doesn't change the appearance
when browsing the HTML).
parent a54a887f
...@@ -109,6 +109,7 @@ $icons{'blank'} = 'blank.' . $IMAGE_TYPE; ...@@ -109,6 +109,7 @@ $icons{'blank'} = 'blank.' . $IMAGE_TYPE;
$CUSTOM_BUTTONS = ''; $CUSTOM_BUTTONS = '';
$BLANK_ICON = "\n<td>" . img_tag('blank.' . $IMAGE_TYPE) . "</td>"; $BLANK_ICON = "\n<td>" . img_tag('blank.' . $IMAGE_TYPE) . "</td>";
$BLANK_ICON =~ s/alt="blank"/alt=""/;
$NAV_BGCOLOR = " bgcolor=\"#99CCFF\""; $NAV_BGCOLOR = " bgcolor=\"#99CCFF\"";
sub make_nav_sectref{ sub make_nav_sectref{
...@@ -121,7 +122,8 @@ sub make_nav_sectref{ ...@@ -121,7 +122,8 @@ sub make_nav_sectref{
} }
sub make_nav_panel{ sub make_nav_panel{
return ("<table width=\"100%\" cellpadding=0 cellspacing=2>\n<tr>" return ("<table align=center width=\"100%\" cellpadding=0 cellspacing=2>"
. "\n<tr>"
. "\n<td>$NEXT</td>" . "\n<td>$NEXT</td>"
. "\n<td>$UP</td>" . "\n<td>$UP</td>"
. "\n<td>$PREVIOUS</td>" . "\n<td>$PREVIOUS</td>"
...@@ -201,6 +203,8 @@ sub img_tag { ...@@ -201,6 +203,8 @@ sub img_tag {
my $nav_border = "$NAV_BORDER"; my $nav_border = "$NAV_BORDER";
if ($icon =~ /($alt)/) { if ($icon =~ /($alt)/) {
$alt = $1; $alt = $1;
$alt = ""
if ($alt eq "blank");
} }
else { else {
$nav_border = '1'; $nav_border = '1';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment