Minor fixes to pass some exporter tests.

git-svn-id: http://google-refine.googlecode.com/svn/trunk@2269 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
David Huynh 2011-10-03 16:38:07 +00:00
parent e55bab31b8
commit e7e9dbc74d
2 changed files with 7 additions and 3 deletions

View File

@ -213,6 +213,8 @@ abstract public class CustomizableTabularExporterUtilities {
CUSTOM
}
final static private String fullIso8601 = "yyyy-MM-dd'T'HH:mm:ss'Z'";
static private class CellFormatter {
ReconOutputMode recon_outputMode = ReconOutputMode.ENTITY_NAME;
boolean recon_blankUnmatchedCells = false;
@ -227,7 +229,9 @@ abstract public class CustomizableTabularExporterUtilities {
Map<String, String> identifierSpaceToUrl = null;
CellFormatter() {}
CellFormatter() {
dateFormatter = new SimpleDateFormat(fullIso8601);
}
CellFormatter(JSONObject options) {
JSONObject reconSettings = JSONUtilities.getObject(options, "reconSettings");
@ -299,7 +303,7 @@ abstract public class CustomizableTabularExporterUtilities {
default:
dateFormatter = date_omitTime ?
new SimpleDateFormat("yyyy-MM-dd") :
new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
new SimpleDateFormat(fullIso8601);
}
if (!date_useLocalTimeZone) {

View File

@ -110,7 +110,7 @@ public class HtmlTableExporter implements WriterExporter {
writer.write("</td>");
}
}
writer.write("</tr>");
writer.write("</tr>\n");
} catch (IOException e) {
// Ignore
}