Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-stable
Commits
32dfba3a
Commit
32dfba3a
authored
Feb 09, 2010
by
Jonathon Duerig
Browse files
BUGFIX: GetText wasn't handling elements with text properly.
parent
21537b2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/lib/GeniXML.pm.in
View file @
32dfba3a
...
...
@@ -232,10 +232,11 @@ sub GetText($$)
if (! defined($child)) {
$child = FindFirst('
@
'.$name, $node);
}
if (! defined($child)) {
$child = FindFirst('
n
:
'.$name, $node);
}
if (defined($child)) {
$result = $child->textContent();
} else {
$child = FindFirst('
n
:
'.$name, $node);
}
return $result;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment