This is exposed as a method for easy subclassing to provide alternate ways
to get the footer text. By default, this will take the footer text,
converting the linefeeds to <br> tags.
String text = getFooterText();
StringBuffer sb = new StringBuffer();
StringTokenizer st = new StringTokenizer(text, "\r\n", true);
while (st.hasMoreTokens()) {
String token = st.nextToken();
if (token.equals("\r")) {
continue;
}
if (token.equals("\n")) {
sb.append("<br />\n");
} else {
sb.append(token);
}
}
return sb.toString();