Skip to content

Commit 99d5d03

Browse files
authored
Merge pull request #678 from Jarrio/patch-9
Allow for inline text for label components
2 parents 7621456 + 3b4dcf4 commit 99d5d03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

haxe/ui/parsers/ui/XMLParser.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ class XMLParser extends ComponentParser {
230230
private function parseDetails(component:ComponentInfo, xml:Xml) {
231231
extractNamespaces(xml);
232232

233-
if (xml.firstChild() != null && '${xml.firstChild().nodeType}' == "1") {
233+
if (xml.firstChild() != null && xml.firstChild().nodeType == PCData) {
234234
var value = StringTools.trim(xml.firstChild().nodeValue);
235235
if (value != null && value.length > 0) {
236236
component.text = value;
@@ -340,4 +340,4 @@ class XMLParser extends ComponentParser {
340340
}
341341
}
342342
}
343-
}
343+
}

0 commit comments

Comments
 (0)