diff --git a/main/src/com/google/refine/exporters/CustomizableTabularExporterUtilities.java b/main/src/com/google/refine/exporters/CustomizableTabularExporterUtilities.java index 9c71bc5c3..2ed540233 100644 --- a/main/src/com/google/refine/exporters/CustomizableTabularExporterUtilities.java +++ b/main/src/com/google/refine/exporters/CustomizableTabularExporterUtilities.java @@ -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 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) { diff --git a/main/src/com/google/refine/exporters/HtmlTableExporter.java b/main/src/com/google/refine/exporters/HtmlTableExporter.java index 460b6b71f..2f14ba12c 100644 --- a/main/src/com/google/refine/exporters/HtmlTableExporter.java +++ b/main/src/com/google/refine/exporters/HtmlTableExporter.java @@ -110,7 +110,7 @@ public class HtmlTableExporter implements WriterExporter { writer.write(""); } } - writer.write(""); + writer.write("\n"); } catch (IOException e) { // Ignore }