private String formatTables(String content) {
	String buf = "";
	int idx = 0;
	int aStart = 0;
	int aEnd = -8;
	while (content.indexOf("<table", idx) != -1) {
	    aStart = content.indexOf("<table", idx);
	    buf += content.substring(aEnd+8, aStart);
	    
	    idx = content.indexOf(">", aStart)+1;
	    aEnd = content.indexOf("</table>", idx);
	    
	    if(content.substring(aStart, idx).indexOf("toc") < 0) {
		aStart = idx;
		buf += formatTR(content.substring(aStart, aEnd).replaceAll("<th", "<td").replaceAll("</th", "</td"));
		buf += "\n\n";
	    }
	    
	    idx = aEnd;
	}
	buf += content.substring(aEnd+8);
	return buf;
    }