Commit 543d4cf0 authored by Robert Ricci's avatar Robert Ricci
Browse files

Hande replacement tags that look like <Foo /> so that they look like

real XML. <Foo> is still supported.
parent 5cdf287a
......@@ -152,7 +152,7 @@ sub substitute($$) {
#
# Replace all variables, which look like <Foo>
#
while ($lines =~ /<(\w+)>/) {
while ($lines =~ /<(\w+)\s*\/?>/) {
if (!defined($variables->{$1})) {
fatal("Unknown variable: $1");
}
......@@ -166,7 +166,7 @@ sub substitute($$) {
} else {
$value = $variables->{$1}{default};
}
$lines =~ s/<(\w+)>/$value/;
$lines =~ s/<(\w+)\s*\/?>/$value/;
}
$nsfile .= $lines;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment