Commits

Cesar Lopez-Nataren committed 71285f3

Fix the problem with li's with floating siblings

  • Participants
  • Parent commits 56d99cd

Comments (0)

Files changed (1)

GatherImageMapping/Program.cs

                     var element = kvp.Key;
                     var children = kvp.Value;
                     var current = element;
-                    foreach(var child in children) {
-                        if(child.Name.EqualsInvariantIgnoreCase("blockquote")) {
-                            child.Remove();
-                            element.Add(child);
-                            current = child;
+                    foreach(var child in children) {                       
+                        if("Note-Indented".EqualsInvariantIgnoreCase(child[".//@class"].AsText)) {
+                            var id = Guid.NewGuid();
+                            element.Add(child[".//@class"].Parent.Attr("tempid", id.ToString()));
+                            current = element[string.Format(".//*[@tempid='{0}']", id)];
+                            current[".//@tempid"].Remove();
                         } else {
                             current.Add(child);
                         }