mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-25 12:12:34 +01:00
compiler_vm: do not eat spaces when splitting line (fixes python indentation)
This commit is contained in:
parent
fa18df01c0
commit
f4d85c730b
@ -39,7 +39,6 @@ sub new {
|
|||||||
$self->{nick} =~ s/^\s+|\s+$//g if defined $self->{nick};
|
$self->{nick} =~ s/^\s+|\s+$//g if defined $self->{nick};
|
||||||
$self->{channel} =~ s/^\s+|\s+$//g if defined $self->{channel};
|
$self->{channel} =~ s/^\s+|\s+$//g if defined $self->{channel};
|
||||||
$self->{lang} =~ s/^\s+|\s+$//g if defined $self->{lang};
|
$self->{lang} =~ s/^\s+|\s+$//g if defined $self->{lang};
|
||||||
$self->{code} =~ s/^\s+|\s+$//g if defined $self->{code};
|
|
||||||
|
|
||||||
$self->initialize(%conf);
|
$self->initialize(%conf);
|
||||||
|
|
||||||
@ -452,7 +451,7 @@ sub add_option {
|
|||||||
sub process_standard_options {
|
sub process_standard_options {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
|
|
||||||
my @opt_args = $self->split_line($self->{code}, preserve_escapes => 1);
|
my @opt_args = $self->split_line($self->{code}, preserve_escapes => 1, keep_spaces => 1);
|
||||||
|
|
||||||
use Data::Dumper;
|
use Data::Dumper;
|
||||||
print STDERR "opt_arg: ", Dumper \@opt_args;
|
print STDERR "opt_arg: ", Dumper \@opt_args;
|
||||||
|
Loading…
Reference in New Issue
Block a user