summaryrefslogtreecommitdiffstats
path: root/parsers
diff options
context:
space:
mode:
Diffstat (limited to 'parsers')
-rw-r--r--parsers/CodeBlocks.java2
-rw-r--r--parsers/Paragraphs.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/parsers/CodeBlocks.java b/parsers/CodeBlocks.java
index 50794a5..b6b3276 100644
--- a/parsers/CodeBlocks.java
+++ b/parsers/CodeBlocks.java
@@ -4,7 +4,7 @@ import java.util.regex.*;
public class CodeBlocks implements Parser {
public String parse(String fileContent) {
- Pattern pattern = Pattern.compile("(\\#\\#\\#)\\n*(.+?)\\n*(\\1)",
+ Pattern pattern = Pattern.compile("(\\#\\#\\#)(.+?)(\\1)",
Pattern.DOTALL);
Matcher matcher = pattern.matcher(fileContent);
LineBreak lbreak = new LineBreak();
diff --git a/parsers/Paragraphs.java b/parsers/Paragraphs.java
index 02d6de6..2a619b3 100644
--- a/parsers/Paragraphs.java
+++ b/parsers/Paragraphs.java
@@ -27,7 +27,7 @@ public class Paragraphs implements Parser {
* give the paragraph that is identified htmlTagPattern
* and see whether the "paragraph" that is actually
* deducted is some other html block like <h1> (heading)
- * or <blockquote>, etcetera. "matcher.find()" has
+ * or <blockquote>, etcetera. If "matcher.find()" has
* actually found a html block then we don't need to do
* the conversion.
*/