chars: rename $html parameter from glyph_info method
[sheet.git] / Shiar_Sheet / FormatChar.pm
index 834b71bc03405f32198a348af6a9995f71d20738..80546556aae9f5153d73166c8e95b07ad33c8863 100644 (file)
@@ -31,7 +31,7 @@ sub glyph_html {
        my ($self, $char) = @_;
        my $codepoint = ord $char;
        my $info = $self->glyph_info($codepoint);
-       my ($class, $name, $mnem, $html, $string) = @$info;
+       my ($class, $name, $mnem, $entity, $string) = @$info;
 
        my $cell = EscapeHTML($string || $char);
        my $title = sprintf 'U+%04X%s', $codepoint, $name && " ($name)";
@@ -39,7 +39,7 @@ sub glyph_html {
        $cell = "<span>$cell</span>" if $class =~ /\bZs\b/;
        $cell = '&nbsp;' if $cell eq '';
 
-       return ($cell, EscapeHTML($title), "X $class", $mnem, $html);
+       return ($cell, EscapeHTML($title), "X $class", $mnem, $entity);
 }
 
 sub glyphs_html {
@@ -231,6 +231,10 @@ sub table {
                        $rows[-1] .= '<th>';
                        next;
                }
+               elsif ($cell =~ m/^</) {
+                       $rows[-1] .= '<td>'.$cell;
+                       next;
+               }
 
                $rows[-1] .= $self->cell($cell,
                        $colspan > 1 && qq{colspan="$colspan"},