From 465706ed892cfe8f8e6d07b3af22a37e97599482 Mon Sep 17 00:00:00 2001 From: David Smith Date: Mon, 7 Sep 2015 20:20:19 -0500 Subject: [PATCH] Experimental code for filtering out newlines between BBCode and regular text. Commented out because it needs better testing. --- TallyCore/Votes/PostText.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/TallyCore/Votes/PostText.cs b/TallyCore/Votes/PostText.cs index d01c4687..d0cdf4ff 100644 --- a/TallyCore/Votes/PostText.cs +++ b/TallyCore/Votes/PostText.cs @@ -98,6 +98,8 @@ public static Predicate GetClassesExclusionPredicate(List clas /// Returns a predicate. private static StringBuilder ExtractPostTextString(HtmlNode node, Predicate exclude, StringBuilder sb = null) { + //char[] newlines = { '\r', '\n' }; + if (sb == null) sb = new StringBuilder(); @@ -111,6 +113,7 @@ private static StringBuilder ExtractPostTextString(HtmlNode node, Predicate