summaryrefslogtreecommitdiffstats
path: root/parsers
diff options
context:
space:
mode:
authorrsiddharth <rsiddharth@ninthfloor.org>2012-11-30 18:48:40 +0530
committerrsiddharth <rsiddharth@ninthfloor.org>2012-11-30 18:48:40 +0530
commitde384fa5b555a4b9bf46da01f30cda5658c8b604 (patch)
tree4b72d5837050ad8614856f6064b97b9500c0a301 /parsers
parenta3e705a134fd9bf8750cd56bc22ad53862f3e12a (diff)
minor-fix(es) to comply with standards
modified: index/IndexCreator.java (added space after the link mark-up) parsers/Images.java (now the string for the alt parameter in the <img> will be surrounded by square brackets)
Diffstat (limited to 'parsers')
-rw-r--r--parsers/Images.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/parsers/Images.java b/parsers/Images.java
index 0cfa5cf..7bbe60a 100644
--- a/parsers/Images.java
+++ b/parsers/Images.java
@@ -25,7 +25,7 @@ import java.util.regex.*;
public class Images implements Parser {
// set of strings to build the img tag
- private String openTag = "<img src=\"$1\" alt=\"$";
+ private String openTag = "<img src=\"$1\" alt=\" \\[$";
private String closeTag = " />";
public String parse(String fileContent) {
Pattern pattern = Pattern.compile("\\{\\{(.+?\\.(png|jpg))(\\|(.+?))?\\}\\}", Pattern.DOTALL);
@@ -39,7 +39,7 @@ public class Images implements Parser {
replacementString.append(openTag);
// if the "title" is given add to the _img_ tag.
if(matcher.group(3)!=null) {
- replacementString.append("4\" title=\"$4\"");
+ replacementString.append("4\\] \" title=\"$4\"");
}
else {
replacementString.append("1\"");