Permalink
Browse files

Fixes #4

  • Loading branch information...
1 parent a9abe48 commit 111ec63f5df171b914de638dad1b2cebe011c9b0 @madskristensen committed Aug 23, 2013
@@ -38,7 +38,7 @@ public void Anonymous3()
{
string result = _parser.Parse("footer+#name.item", ZenType.HTML);
- Assert.AreEqual("<footer></footer><div id=\"name\" class=\"item\"></div>", result);
+ Assert.AreEqual("<footer></footer><div id=\"name\" class=\"item\"></div>", result.Replace(Environment.NewLine, string.Empty));
}
[TestMethod]
@@ -58,7 +58,7 @@ public void PlusSelect()
public void PlusMap()
{
string result = _parser.Parse("map+", ZenType.HTML);
- string expected = "<map><area shape=\"\" coords=\"\" href=\"\" alt=\"\"></area></map>";
+ string expected = "<map>\r\n<area shape=\"\" coords=\"\" href=\"\" alt=\"\"></area></map>";
Assert.AreEqual(expected, result);
}
@@ -38,7 +38,7 @@ public void ShortcutSearch()
public void ShortcutChildren()
{
string result = _parser.Parse("input:search+div", ZenType.HTML);
- string expected = "<input type=\"search\" value=\"\" id=\"\" /><div></div>";
+ string expected = "<input type=\"search\" value=\"\" id=\"\" />\r\n<div></div>";
Assert.AreEqual(expected, result);
}
View
Binary file not shown.
@@ -17,10 +17,13 @@ public BlockHtmlControl(string tagName)
protected override void RenderBeginTag(HtmlTextWriter writer)
{
+ //if (!(this.Parent is BlockHtmlControl))
+ writer.Write(Environment.NewLine);
+
base.RenderBeginTag(writer);
- if (Controls.Count > 0)
- writer.Write(Environment.NewLine);
+ //if (Controls.Count > 0)
+ //writer.Write(Environment.NewLine);
}
}
}

0 comments on commit 111ec63

Please sign in to comment.