summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/TODO2
-rw-r--r--parsers/Paragraphs.java3
-rw-r--r--parsers/QuoteSpecialText.java1
3 files changed, 5 insertions, 1 deletions
diff --git a/etc/TODO b/etc/TODO
index 8cdc71d..fc9763f 100644
--- a/etc/TODO
+++ b/etc/TODO
@@ -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();
}
}