Mercurial > public > html2wiki
changeset 16:001e43423d5d
added replace transformer to remove garbage character (ESC, unicode 001B) from "screen prints", replaced with a space.
author | ferrall@nwoca.org |
---|---|
date | Tue, 08 Feb 2011 08:12:33 -0500 |
parents | 494ca5643e1a |
children | a88e2f8fb117 |
files | src/org/nwoca/ssdt/tools/html2wiki/Html2Wiki.java |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/org/nwoca/ssdt/tools/html2wiki/Html2Wiki.java Mon Feb 07 11:44:10 2011 -0500 +++ b/src/org/nwoca/ssdt/tools/html2wiki/Html2Wiki.java Tue Feb 08 08:12:33 2011 -0500 @@ -66,6 +66,7 @@ transformers.add(new ReplaceTransformer("<li>","{li}")); transformers.add(new ReplaceTransformer("\\n\\s*</li>","{li}\n")); // remove leading space from </li> transformers.add(new ReplaceTransformer("</li>","{li}\n")); // Replace remaining </li> + transformers.add(new ReplaceTransformer("\\u001B"," ")); // Replace ASCII ESC character transformers.add(new ChapterTransformer(category)); transformers.add(new TagTransformer("<pre>(.*?)</pre>", true, "{code}","{code}"));