Skip to content

Commit

Permalink
Item13181: First \n lost when loading multiline spec
Browse files Browse the repository at this point in the history
  • Loading branch information
gac410 committed Feb 16, 2015
1 parent f59bd37 commit 8c3041b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/lib/Foswiki/Configure/LoadSpec.pm
Expand Up @@ -340,6 +340,9 @@ sub parse {
next;
}

# Restore initial \n for continued lines
$value .= "\n" unless $value =~ /\s*;\s*$/;

# Read the value verbatim, retaining internal \s
while ( $value !~ s/\s*;\s*$//s ) {
my $cont = <$fh>;
Expand Down

0 comments on commit 8c3041b

Please sign in to comment.