Fix a typo in WSClient which prevented it from adding/editing assets.
Make the whitespace test give some context to its failures. Fix a buglet in the label test.
This commit is contained in:
parent
785645b2b6
commit
5ddc168659
4 changed files with 7 additions and 3 deletions
|
|
@ -64,7 +64,10 @@ sub checkContent {
|
|||
foreach my $line (@content) {
|
||||
chomp $line;
|
||||
my $isPodWord = ($line =~ m/^=/);
|
||||
return 1 if ($isPodWord && !$podAllowed);
|
||||
if ($isPodWord && !$podAllowed) {
|
||||
diag $line;
|
||||
return 1;
|
||||
}
|
||||
# POD is allowed on next line if current line is empty
|
||||
$podAllowed = ($line eq '');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -227,7 +227,7 @@ sub getHelpLabels {
|
|||
|
||||
sub getHelpVariables {
|
||||
my ($variables) = @_; ##An arrayref of variables, possibly with nested variables in loops
|
||||
my $tmplVars;
|
||||
my $tmplVars = [];
|
||||
foreach my $var ( @{ $variables } ) {
|
||||
if ( exists $var->{variables} ) {
|
||||
push @{ $tmplVars }, @{ getHelpVariables($var->{variables}) };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue