diff options
author | rsiddharth <rsiddharth@ninthfloor.org> | 2014-07-17 17:54:58 +0530 |
---|---|---|
committer | rsiddharth <rsiddharth@ninthfloor.org> | 2014-07-17 17:54:58 +0530 |
commit | fd858dea020554d28089a49d774f055db5905eb6 (patch) | |
tree | 00ecc69bdf08314e1c64e3614894953a361685d5 | |
parent | 10ffa6754cb8af49f38ace31ca93d8e0bf0adb7d (diff) |
add some code for debugging + TODO update.
-rw-r--r-- | etc/TODO | 2 | ||||
-rw-r--r-- | parsers/Paragraphs.java | 3 | ||||
-rw-r--r-- | parsers/QuoteSpecialText.java | 1 |
3 files changed, 5 insertions, 1 deletions
@@ -15,3 +15,5 @@ SCRUF - TODO -*- mode: org; -*- Therefore, need to enable HTML markup in scruffy. * documentation ** list mark up should be documented. +* bugs +** the Paragraphs parser has a serious bug, which is creating un-acceptable delays in parsing. diff --git a/parsers/Paragraphs.java b/parsers/Paragraphs.java index d4ad31c..f5e5bab 100644 --- a/parsers/Paragraphs.java +++ b/parsers/Paragraphs.java @@ -38,7 +38,7 @@ public class Paragraphs implements Parser { Matcher matcher = pattern.matcher(fileContent); Matcher htmlTag; StringBuffer sbuffer = new StringBuffer(); - + System.out.println("Paragraph BANG."); while(matcher.find()) { htmlTag = htmlTagPattern.matcher(matcher.group()); @@ -51,6 +51,7 @@ public class Paragraphs implements Parser { } } matcher.appendTail(sbuffer); + System.out.println("Paragraph BANG EXIT."); return sbuffer.toString(); } } diff --git a/parsers/QuoteSpecialText.java b/parsers/QuoteSpecialText.java index 5e63bc9..8d13d2a 100644 --- a/parsers/QuoteSpecialText.java +++ b/parsers/QuoteSpecialText.java @@ -56,6 +56,7 @@ public class QuoteSpecialText implements Parser { } } matcher.appendTail(sbuffer); + System.out.println("BANGA BANG!"); return sbuffer.toString(); } } |