From 141f0dc206b7f54b29627b91484782643bd08ec6 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Wed, 19 May 2010 21:08:40 +0000 Subject: [PATCH] unicode: prevent empty row at table header rows Any table was incorrectly prefixed by , causing invalid html sequences. --- Shiar_Sheet/FormatChar.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Shiar_Sheet/FormatChar.pm b/Shiar_Sheet/FormatChar.pm index 656252c..a806258 100644 --- a/Shiar_Sheet/FormatChar.pm +++ b/Shiar_Sheet/FormatChar.pm @@ -6,7 +6,7 @@ use warnings; use Data::Dump 'pp'; use PLP::Functions 'EscapeHTML'; -our $VERSION = '1.02'; +our $VERSION = '1.03'; our $diinfo = do 'digraphs.inc.pl'; our %di = map { $diinfo->{$_}->[0] => $_ } grep { ref $diinfo->{$_} } @@ -142,7 +142,7 @@ sub table { for my $cell (@$digraphs) { if ($cell =~ s/^\.//) { # dot indicates start of a new row - push @rows, ''; + push @rows, ''; if ($cell =~ s/^>//) { # header cell text follows $cell =~ s/_/ /g; # underscores may be used instead of whitespace (for qw//ability) @@ -165,7 +165,7 @@ sub table { return sprintf qq{\n%s
\n}, $self->{digraph} || $self->{unicode} >= 0 ? ' dilabel' : '', - join '', map {"$_\n"} @rows; + join '', map {"$_\n"} @rows; } sub print { -- 2.30.0