diff src/org/nwoca/ssdt/tools/html2wiki/PreTagTransformer.java @ 7:a634b4d554d4

Minor fixups >, random smilies :), etc. Fixed blockquote. Handle escaping brackets outside pre tag.
author smith@nwoca.org
date Thu, 27 Jan 2011 18:07:28 -0500
parents f8b1ea49d065
children
line wrap: on
line diff
--- a/src/org/nwoca/ssdt/tools/html2wiki/PreTagTransformer.java	Thu Jan 27 16:37:27 2011 -0500
+++ b/src/org/nwoca/ssdt/tools/html2wiki/PreTagTransformer.java	Thu Jan 27 18:07:28 2011 -0500
@@ -14,7 +14,8 @@
         boolean first = true;
         while (matcher.find( first ? 0 : matcher.end())) {
             String temp = buffer.substring(matcher.start(),matcher.end());
-            temp = temp.replaceAll("(?m)^\\s","\r ");
+            temp = temp.replaceAll("\\\\\\[","[");
+            temp = temp.replaceAll("\\\\\\]","]");
             buffer.replace(matcher.start(),matcher.end(),temp);
             first = false;
         }
@@ -22,7 +23,7 @@
     }
         
     public String toString() {
-        return "Preserving <pre> tag spacing";
+        return "Unescaping Pre tag contents";
     }
 
 }
\ No newline at end of file