Index: xword/ContentFiltering/Office/Word/LocalToWebHTML.cs =================================================================== --- xword/ContentFiltering/Office/Word/LocalToWebHTML.cs (revision 20935) +++ xword/ContentFiltering/Office/Word/LocalToWebHTML.cs (working copy) @@ -133,11 +133,22 @@ } expression = navigator.Compile("//td[@valign]"); XmlNodeList nodes = xmlDoc.GetElementsByTagName("td"); + XmlAttribute colspanAttribute, rowspanAttribute; foreach (XmlNode node in nodes) { //XmlAttribute valign = node.Attributes["valign"]; //node.Attributes.Remove(valign); + colspanAttribute = node.Attributes["colspan"]; + rowspanAttribute = node.Attributes["rowspan"]; node.Attributes.RemoveAll(); + if (colspanAttribute != null) + { + node.Attributes.Append(colspanAttribute); + } + if (rowspanAttribute != null) + { + node.Attributes.Append(rowspanAttribute); + } } }