Skip to content

Commit

Permalink
Experimental code for filtering out newlines between BBCode and regul…
Browse files Browse the repository at this point in the history
…ar text.

Commented out because it needs better testing.
  • Loading branch information
Kinematics committed Sep 8, 2015
1 parent 5411c92 commit 465706e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions TallyCore/Votes/PostText.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ public static Predicate<HtmlNode> GetClassesExclusionPredicate(List<string> clas
/// <returns>Returns a predicate.</returns>
private static StringBuilder ExtractPostTextString(HtmlNode node, Predicate<HtmlNode> exclude, StringBuilder sb = null)
{
//char[] newlines = { '\r', '\n' };

if (sb == null)
sb = new StringBuilder();

Expand All @@ -111,6 +113,7 @@ private static StringBuilder ExtractPostTextString(HtmlNode node, Predicate<Html
switch (child.Name)
{
case "#text":
//sb.Append(child.InnerText.Trim(newlines));
sb.Append(child.InnerText);
break;
case "br":
Expand Down

0 comments on commit 465706e

Please sign in to comment.