r9797 - helma-ng/trunk/src/org/helma/util

[email protected] Sat, 16 May 2009 21:15:30 +0200 (CEST)
Newsgroups gmane.comp.java.helma.cvs
Message-ID <20090516191530.9E04F3D0D6@mia>
Author: hannes
Date: 2009-05-16 21:15:30 +0200 (Sat, 16 May 2009)
New Revision: 9797

Modified:
   helma-ng/trunk/src/org/helma/util/MarkdownProcessor.java
Log:
Do not swallow indefinite whitespace (including line breaks!!!) between link text and link definition. Actually, do not swallow _any_ whitespace there.

Details at http://dev.helma.org/trac/helma/changeset/9797

Modified: helma-ng/trunk/src/org/helma/util/MarkdownProcessor.java
===================================================================
--- helma-ng/trunk/src/org/helma/util/MarkdownProcessor.java	2009-05-16 09:27:39 UTC (rev 9796)
+++ helma-ng/trunk/src/org/helma/util/MarkdownProcessor.java	2009-05-16 19:15:30 UTC (rev 9797)
@@ -595,9 +595,9 @@
         String linkId;
         int k = j;
         j += 1;
-        while (j < length && Character.isWhitespace(chars[j])) {
+        /* if (j < length && isSpace(chars[j])) {
             j += 1;
-        }
+        } */
         c = chars[j++];
         if (c == '[') {
             while (j < length && chars[j] != ']') {