diff options
author | rsiddharth <rsiddharth@ninthfloor.org> | 2012-11-10 17:31:36 +0530 |
---|---|---|
committer | rsiddharth <rsiddharth@ninthfloor.org> | 2012-11-10 17:31:36 +0530 |
commit | 0637e50adf2490a98695bd3b63db12f32f8af631 (patch) | |
tree | 18446a430ad8c17833bb23a4e95383d8c9e2ca0d /parsers/Footer.java | |
parent | d2f10460050965fa11e046bd6967b08a0e5e49b7 (diff) | |
parent | ab443161eaa4cb631423884972108785ce764269 (diff) |
merged from devel branch
Diffstat (limited to 'parsers/Footer.java')
-rw-r--r-- | parsers/Footer.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/parsers/Footer.java b/parsers/Footer.java index 7f079bd..f8d85ae 100644 --- a/parsers/Footer.java +++ b/parsers/Footer.java @@ -28,11 +28,12 @@ public class Footer implements Parser { Pattern pattern = Pattern.compile("\\-{70}\\n(.+)\\n\\-{70}"); Matcher matcher = pattern.matcher(fileContent); StringBuffer sbuffer = new StringBuffer(); + String footer=null; while(matcher.find()) { - PresentFile.footer = "\n<footer>"+matcher.group(1)+"</footer>\n"; - fileContent = new NullIt().nullIt(fileContent,matcher.group()); + footer = "\n<footer>"+matcher.group(1)+"</footer>\n"; + matcher.appendReplacement(sbuffer,footer); } - - return fileContent; + matcher.appendTail(sbuffer); + return sbuffer.toString(); } } |