diff options
author | rsiddharth <rsiddharth@ninthfloor.org> | 2013-06-26 22:46:49 +0530 |
---|---|---|
committer | rsiddharth <rsiddharth@ninthfloor.org> | 2013-06-26 22:46:49 +0530 |
commit | d2b2ea4d6fd8d8b2529d8df37ef151982c596e44 (patch) | |
tree | 5a10e38f653451d637f07e688c7cfbf151784ac9 | |
parent | a579449a0cf4c4d51714236eb2f4101936efc5de (diff) |
modified: parsers/Images.java (`alt' attribute constructs itself nicely now)
-rw-r--r-- | parsers/Images.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/parsers/Images.java b/parsers/Images.java index 8e0c566..f38ef46 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|jp[e]?g|svg))(\\|(.+?))?\\}\\}", 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\""); |