From 9cb0c31a0a33cf8e9d7fb71c46304b47823266cd Mon Sep 17 00:00:00 2001 From: Alex Coles Date: Mon, 18 Feb 2013 19:26:47 +0100 Subject: [PATCH] Cleanup whitespace Signed-off-by: Alex Coles --- core/src/main/java/org/markdownj/MarkdownProcessor.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/org/markdownj/MarkdownProcessor.java b/core/src/main/java/org/markdownj/MarkdownProcessor.java index 53fbcfd..56d50bb 100644 --- a/core/src/main/java/org/markdownj/MarkdownProcessor.java +++ b/core/src/main/java/org/markdownj/MarkdownProcessor.java @@ -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; @@ -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") @@ -671,7 +671,7 @@ private void doImages(TextEditor text) { // Inline image syntax text.replaceAll("!\\[(.*)\\]\\((.*) \"(.*)\"\\)", "\"$1\""); text.replaceAll("!\\[(.*)\\]\\((.*)\\)", "\"$1\""); - + // Reference-style image syntax Pattern imageLink = Pattern.compile("(" + "[!]\\[(.*?)\\]" + // alt text = $2 @@ -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) {