sub usage(); # i=1 [default; follows input]
sub usage (); # i=2 [space]
+ - fixed issue git#16, minor vertical alignment issue.
## 2019 09 15
# decision here, but for now this is not available.
for ( my $j = 1 ; $j < $jmax_new - 1 ; $j++ ) {
my $new_tok = $rtokens->[$j];
- my $is_good_alignment = ( $new_tok =~ /^(=|\?|if|unless|\|\||\&\&)/ );
+
+ # git#16: do not consider fat commas as good aligmnents here
+ my $is_good_alignment =
+ ( $new_tok =~ /^(=|\?|if|unless|\|\||\&\&)/ && $new_tok !~ /^=>/ );
return if ($is_good_alignment);
}
--- /dev/null
+# git#16, two equality lines with fat commas on the right
+my $Package = $Self->RepositoryGet( %Param, Result => 'SCALAR' );
+my %Structure = $Self->PackageParse( String => $Package );
--- /dev/null
+# git#16, two equality lines with fat commas on the right
+my $Package = $Self->RepositoryGet( %Param, Result => 'SCALAR' );
+my %Structure = $Self->PackageParse( String => $Package );
../snippets15.t align30.def
../snippets15.t git09.def
../snippets15.t git09.git09
+../snippets15.t git14.def
+../snippets15.t sal.def
+../snippets15.t sal.sal
+../snippets15.t spp.def
+../snippets15.t spp.spp0
+../snippets16.t spp.spp1
+../snippets16.t spp.spp2
../snippets2.t angle.def
../snippets2.t arrows1.def
../snippets2.t arrows2.def
../snippets9.t rt98902.def
../snippets9.t rt98902.rt98902
../snippets9.t rt99961.def
-../snippets15.t git14.def
-../snippets15.t sal.def
-../snippets15.t sal.sal
-../snippets15.t spp.def
-../snippets15.t spp.spp0
-../snippets16.t spp.spp1
-../snippets16.t spp.spp2
+../snippets16.t git16.def
# Contents:
#1 spp.spp1
#2 spp.spp2
+#3 git16.def
# To locate test #13 you can search for its name or the string '#13'
# BEGIN SECTION 1: Parameter combinations #
###########################################
$rparams = {
+ 'def' => "",
'spp1' => "-spp=1",
'spp2' => "-spp=2",
};
############################
$rsources = {
+ 'git16' => <<'----------',
+# git#16, two equality lines with fat commas on the right
+my $Package = $Self->RepositoryGet( %Param, Result => 'SCALAR' );
+my %Structure = $Self->PackageParse( String => $Package );
+----------
+
'spp' => <<'----------',
sub get_val() { }
sub Get_val () { }
#2...........
},
+
+ 'git16.def' => {
+ source => "git16",
+ params => "def",
+ expect => <<'#3...........',
+# git#16, two equality lines with fat commas on the right
+my $Package = $Self->RepositoryGet( %Param, Result => 'SCALAR' );
+my %Structure = $Self->PackageParse( String => $Package );
+#3...........
+ },
};
my $ntests = 0 + keys %{$rtests};