changeset 10:2fb5084b1564

[no commit message]
author ferrall@nwoca.org
date Fri, 28 Jan 2011 10:16:57 -0500
parents ccb40d1cb213
children 8f23347884c0
files src/org/nwoca/ssdt/tools/html2wiki/Html2Wiki.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/org/nwoca/ssdt/tools/html2wiki/Html2Wiki.java	Fri Jan 28 09:07:05 2011 -0500
+++ b/src/org/nwoca/ssdt/tools/html2wiki/Html2Wiki.java	Fri Jan 28 10:16:57 2011 -0500
@@ -54,7 +54,7 @@
         transformers.add(new ReplaceTransformer("<br>","\\\\"));
 
         //replace table tag preserving border setting.
-        transformers.add(new TagTransformer("<table\\sborder=(\\d).*?>", true, "{table:border=","}"));
+        transformers.add(new TagTransformer("<table\\sborder=(\\d).*?>", true, "{table:border=", "|width=75%}"));
 
         transformers.add(new ReplaceTransformer("<table.*?>|</table>","{table}"));
         transformers.add(new ReplaceTransformer("<tr>|</tr>","{tr}"));
@@ -82,7 +82,7 @@
         transformers.add(new TagTransformer("<h6>(.*)</h6>",    "h6. ", ""));
 
         //Replace Notes with Info tags.
-        transformers.add(new ReplaceTransformer("\\{center}\\n\\{table:border=\\d}\\n\\{tr\\}\\n\\s{2}\\{td\\}\\{center\\}\\*Note\\*\\{center\\}","{info}"));
+        transformers.add(new ReplaceTransformer("\\{center}\\n\\{table:border=\\d.*}\\n\\{tr\\}\\n\\s{2}\\{td\\}\\{center\\}\\*Note\\*\\{center\\}","{info}"));
         transformers.add(new ReplaceTransformer("\\{td\\}\\n\\s{2}\\{tr\\}\\n\\{table\\}\\n\\{center\\}","{info}"));
 
         //Remove unnecessary table surrounding code blocks.