Skip to content

Commit

Permalink
FIXED: markup characters need to be deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
qindapao committed Dec 1, 2023
1 parent 6bb565e commit 31cd4b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/App/Asciio/Cross.pm
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ while( my($coordinate, $elements) = each $cross_zbuffer->{intersecting_elements}
$neighbors_stack->{($Y+1) . ';' . ($X-1)} // [$undef_char],
$neighbors_stack->{$Y . ';' . ($X-1)} // [$undef_char]);

my $normal_key = join(join('o', @{$up}), '_', join('o', @{$down}), '_', join('o', @{$left}), '_', join('o', @{$right})) ;
my $normal_key = join('_', join('o', @{$up}), join('o', @{$down}), join('o', @{$left}), join('o', @{$right})) ;

unless(exists $normal_char_cache{$normal_key})
{
Expand All @@ -271,7 +271,7 @@ while( my($coordinate, $elements) = each $cross_zbuffer->{intersecting_elements}

next unless exists $diagonal_cross_chars{$elements->[0]} ;

my $diagonal_key = join(join('o', @{$char_45}), '_', join('o', @{$char_135}), '_', join('o', @{$char_225}), '_', join('o', @{$char_315})) ;
my $diagonal_key = join('_', join('o', @{$char_45}), join('o', @{$char_135}), join('o', @{$char_225}), join('o', @{$char_315})) ;

unless(exists $diagonal_char_cache{$diagonal_key})
{
Expand Down
2 changes: 1 addition & 1 deletion lib/App/Asciio/ZBuffer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ my @glyphs ;

for my $strip (@{$element->get_stripes})
{
$strip = $USE_MARKUP_CLASS->delete_markup_characters($strip) ;
my $line_index = 0 ;

for my $line (split /\n/, $strip->{TEXT})
{
$line = $USE_MARKUP_CLASS->delete_markup_characters($line) ;
my $character_index = 0 ;

for my $char ( split '', $line)
Expand Down

0 comments on commit 31cd4b5

Please sign in to comment.