aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--parsers/Images.java4
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\"");