Skip to content

Commit

Permalink
Merge branch 'master' of github.com:do-/eludia
Browse files Browse the repository at this point in the history
  • Loading branch information
jonny64 committed Mar 26, 2020
2 parents 912b4a9 + 2661024 commit afc1963
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Eludia/Presentation/Skins/XLSX.pm
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ sub draw_text_cell {
my $format = {
text_wrap => 1,
border => 1,
valign => 'top',
valign => $data -> {options} -> {valign} || 'top',
align => 'left',
font => $_REQUEST {__xl_font},
size => $_REQUEST {__xl_font_size},
Expand Down Expand Up @@ -1246,6 +1246,10 @@ sub decode_rus {

my ($row, $col, $label, @args) = @_;

if (Encode::is_utf8 ($label)) {
return undef;
}

$label = decode ($i18n -> {_charset}, $label);

return $worksheet -> write ($row, $col, $label, @args);
Expand All @@ -1266,6 +1270,9 @@ sub processing_string{
$string =~ s/\<(b|h)r\/?\>/\n/ig;
$string =~ s/&rArr;/ \=\> /ig;

$string = Encode::decode ('cp-1251', $string)
if $preconf -> {core_skin} ne 'Ken';

$string =~ s/&#x([a-fA-F0-9]+);/"&#". hex($1) .";"/ge;
$string =~ s/&#([0-9]+);/chr($1)." "/ge;

Expand Down

0 comments on commit afc1963

Please sign in to comment.