Fixed empty xmlDocument reverse formatting issue.
This commit is contained in:
parent
e7c1ad698e
commit
0dadf51bac
1 changed files with 1 additions and 1 deletions
|
@ -412,7 +412,7 @@ namespace ScrewTurn.Wiki {
|
|||
public static string ReverseFormat(string html) {
|
||||
StringReader strReader = new StringReader(html);
|
||||
XmlDocument x = FromHTML((TextReader)strReader);
|
||||
if(x != null) return ProcessChild(x.FirstChild.ChildNodes);
|
||||
if(x != null && x.HasChildNodes && x.FirstChild.HasChildNodes) return ProcessChild(x.FirstChild.ChildNodes);
|
||||
else return "";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue