From 5d892e9b95b9ee54aa3d5b34a9f2700a30101d2d Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sat, 4 Aug 2012 12:06:23 +0530 Subject: Modified parsers/Paragraphs.java & styling/style.css --- parsers/Paragraphs.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'parsers') diff --git a/parsers/Paragraphs.java b/parsers/Paragraphs.java index 9b257a2..02d6de6 100644 --- a/parsers/Paragraphs.java +++ b/parsers/Paragraphs.java @@ -3,7 +3,7 @@ package scruf.parsers; import java.util.regex.*; public class Paragraphs implements Parser { - private String paragraph = "

\n $0

\n"; + private String paragraph = "

\n$0

\n"; public String parse(String fileContent) { /** * This regex contains two parts seperated by a '|'; the first @@ -24,8 +24,8 @@ public class Paragraphs implements Parser { StringBuffer sbuffer = new StringBuffer(); while(matcher.find()) { /** - * give the paragraph that is indentified htmlTagPattern - * and see whether the "paragraph" that is actuall + * give the paragraph that is identified htmlTagPattern + * and see whether the "paragraph" that is actually * deducted is some other html block like

(heading) * or
, etcetera. "matcher.find()" has * actually found a html block then we don't need to do @@ -36,8 +36,10 @@ public class Paragraphs implements Parser { * if "matcher.find()" _has not_ deducted a html block, * then we do the conversion. */ - if(!htmlTag.find()) { + if(!htmlTag.find()) { matcher.appendReplacement(sbuffer,paragraph); + }else { + System.out.println("MATCH$"+matcher.group()+" MATCH$$"); } } matcher.appendTail(sbuffer); -- cgit v1.2.3