Skip to content

Commit

Permalink
Cleanup whitespace
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Coles <alex@alexbcoles.com>
  • Loading branch information
myabc committed Feb 18, 2013
1 parent 0c233ef commit 9cb0c31
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/src/main/java/org/markdownj/MarkdownProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ public String firstLine(String text)
String[] splitted = text.split("\\n");
return splitted[0];
}

public boolean isLanguageIdentifier(String line)
{
if (line == null) return false;
Expand All @@ -397,7 +397,7 @@ public boolean isLanguageIdentifier(String line)
}
return lang.length() > 0;
}

public String languageBlock(String firstLine, String text)
{
// dont'use %n in format string (markdown aspect every new line char as "\n")
Expand Down Expand Up @@ -671,7 +671,7 @@ private void doImages(TextEditor text) {
// Inline image syntax
text.replaceAll("!\\[(.*)\\]\\((.*) \"(.*)\"\\)", "<img src=\"$2\" alt=\"$1\" title=\"$3\" />");
text.replaceAll("!\\[(.*)\\]\\((.*)\\)", "<img src=\"$2\" alt=\"$1\" />");

// Reference-style image syntax
Pattern imageLink = Pattern.compile("(" +
"[!]\\[(.*?)\\]" + // alt text = $2
Expand All @@ -687,7 +687,7 @@ public String replacement(Matcher m) {
if (id == null || "".equals(id)) {
id = altText.toLowerCase();
}

// imageDefinition is the same as linkDefinition
LinkDefinition defn = linkDefinitions.get(id);
if (defn != null) {
Expand Down

0 comments on commit 9cb0c31

Please sign in to comment.