summaryrefslogtreecommitdiffstats
path: root/parsers
diff options
context:
space:
mode:
authorrsiddharth <rsiddharth@ninthfloor.org>2012-12-23 22:27:39 +0530
committerrsiddharth <rsiddharth@ninthfloor.org>2012-12-23 22:27:39 +0530
commit8f99a116ceb2e78a3678df0df078599d009a1f68 (patch)
tree6900c0e13543333089897f6c51456b825d3bffc6 /parsers
parent3d489cce70a2033463f41f83988dc2b748f0d2f0 (diff)
[bug-fix]: The `Footer` parser now allows the text, inside the markep up footer block, to be multi-line.
modified: parsers/Footer.java
Diffstat (limited to 'parsers')
-rw-r--r--parsers/Footer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/parsers/Footer.java b/parsers/Footer.java
index f8d85ae..ad85c10 100644
--- a/parsers/Footer.java
+++ b/parsers/Footer.java
@@ -25,7 +25,7 @@ import java.util.regex.*;
import scruf.io.*;
public class Footer implements Parser {
public String parse(String fileContent) {
- Pattern pattern = Pattern.compile("\\-{70}\\n(.+)\\n\\-{70}");
+ Pattern pattern = Pattern.compile("\\-{70}\\n(.+)\\n\\-{70}",Pattern.DOTALL);
Matcher matcher = pattern.matcher(fileContent);
StringBuffer sbuffer = new StringBuffer();
String footer=null;