// The JCreole.parseCreole method will throw an exception if it
// has to parse the empty string!
return "";
}
StringBuilder sb = new StringBuilder(from);
JCreole jcreole = new JCreole();
EnumSet<JCreolePrivilege> ps = jcreole.getPrivileges();
ps.add(JCreolePrivilege.ABSLINK);
jcreole.setPrivileges(ps);
String to = "";
try {
//CreoleScanner scanner = CreoleScanner.newCreoleScanner(sb, true);
//to = parser.parse(scanner).toString();
to = jcreole.parseCreole(sb);
} catch (Exception ex) {
//System.out.println("This is the creole we got: >>>>\n"+sb+"\n<<<<");
//System.out.println("This is the original string we got: >>>>\n"+from+"\n<<<<");
throw new GateRuntimeException("Could not convert creole wiki format to html: "+from,ex);
}