Skip to content

Commit

Permalink
\section[center]
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Gildea committed Dec 15, 2018
1 parent 33f107b commit 1c5498b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions latex2html.pin
Expand Up @@ -8420,7 +8420,7 @@ sub make_section_heading {
# separate any invisible anchors or alignment, if this has not already been done
if (!($anchors)){ ($anchors,$text) = &extract_anchors($text) }
else {
$anchors =~ s/(ALIGN=\"\w*\")/$align = " $1";''/e;
$anchors =~ s/(class=\"\w*\")/$align = " $1";''/e;
$align = '' if ($HTML_VERSION < 2.2);
$anchors = &translate_commands($anchors) if ($anchors =~ /\\/);
}
Expand Down Expand Up @@ -11043,7 +11043,7 @@ sub do_cmd_section_helper {

local ($align, $dummy)=&get_next_optional_argument;
if (($align =~/^(left|right|center)$/i)&&($HTML_VERSION > 2.0)) {
$align = "class=\"$1\"";
$align = "class=\"".uc($1)."\"";
} elsif ($align) {
# data was meant to be a running-head !
$br_id = ++$global{'max_id'};
Expand Down

0 comments on commit 1c5498b

Please sign in to comment.