提交 0088cd74 编写于 作者: T TopProgrammer77

fix: Fix the Space/Blank missing error

上级 bdd49d9b
......@@ -666,6 +666,17 @@ namespace Uno.Xaml
yield return ni;
}
var currentNodeType = r.NodeType;
var currentNodeValue = r.Value;
var nextNodeType = r.MoveToContent();
if (currentNodeType == XmlNodeType.Whitespace && nextNodeType != XmlNodeType.EndElement)
{
yield return Node(XamlNodeType.Value, " ");
}
if (currentNodeType == XmlNodeType.SignificantWhitespace)
{
yield return Node(XamlNodeType.Value, currentNodeValue);
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册