diff options
author | rsiddharth <rsiddharth@ninthfloor.org> | 2012-10-26 21:38:13 +0530 |
---|---|---|
committer | rsiddharth <rsiddharth@ninthfloor.org> | 2012-10-26 21:38:13 +0530 |
commit | 8ea18f49eb5ed2034c1903c9e50aa6c3cbb0f896 (patch) | |
tree | 0a55400833217ef8473f0b8a76c8ae296cc5bc4c /index | |
parent | 0b6cabd40f2cb5978e69977f483d9ce30a3d2360 (diff) |
modified:
index/IndexCreator.java
Structural modification.
parsers/CodeBlocks.java
replacement string was edited.
@@ -33,7 +33,7 @@
- replacement.append("<div class=\\\"code\\\">");
+ replacement.append("<div class=\"code\">");
parsers/DocumentName.java
Structural modification.
parsers/Header.java
"powered by scruf" was linked.
parsers/Paragraphs.java
Display message. (should remove it in next commit).
parsers/ParserList.java
New parser -- DocumentDate
parsers/WordDecoration.java
replacement string was edited.
@@ -34,7 +34,7 @@
- tagMap.put("`","<span class=\\\"monospace\\\">$7</span>");
+ tagMap.put("`","<span class=\"monospace\">$7</span>");
unknown:
parsers/DocumentDate.java (will add it in next commit)
Diffstat (limited to 'index')
-rw-r--r-- | index/IndexCreator.java | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/index/IndexCreator.java b/index/IndexCreator.java index 49aa16c..fc469ce 100644 --- a/index/IndexCreator.java +++ b/index/IndexCreator.java @@ -54,21 +54,21 @@ public class IndexCreator { } } public boolean write() { - if(modified) - new WriteFile(index,indexContent.toString()).write(); - return modified; + if(modified) + new WriteFile(index,indexContent.toString()).write(); + return modified; } public File indexFile() { - return index; + return index; } private boolean shouldAdd(String fileName) { - String regex = ".*"+fileName+".*"; - // checks if fileName is already there in index. - boolean check1 = !(Pattern.compile(regex). - matcher(indexContent.toString()).find()); - // checks if fileName is index itself. - boolean check2 = !(Pattern.matches(fileName,"index")); - boolean add = (check1 && check2); - return add; + String regex = ".*"+fileName+".*"; + // checks if fileName is already there in index. + boolean check1 = !(Pattern.compile(regex). + matcher(indexContent.toString()).find()); + // checks if fileName is index itself. + boolean check2 = !(Pattern.matches(fileName,"index")); + boolean add = (check1 && check2); + return add; } } |