diff options
author | rsiddharth <rsd@scruf> | 2012-10-25 02:04:52 +0530 |
---|---|---|
committer | rsiddharth <rsd@scruf> | 2012-10-25 02:04:52 +0530 |
commit | 42a846f59d7b6971ff1111544df089a9ff0f6570 (patch) | |
tree | ec43bba18d95f5823644eea41db7b074716c4d39 /parsers | |
parent | f533ccd443c61c7b3f3fd58ddd1327d384539c5e (diff) |
modified:
parsers/CodeBlocks.java
parsers/Paragraphs.java
Diffstat (limited to 'parsers')
-rw-r--r-- | parsers/CodeBlocks.java | 2 | ||||
-rw-r--r-- | parsers/Paragraphs.java | 2 |
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. */ |