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:
parent
e55bab31b8
commit
e7e9dbc74d
@ -213,6 +213,8 @@ abstract public class CustomizableTabularExporterUtilities {
|
|||||||
CUSTOM
|
CUSTOM
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final static private String fullIso8601 = "yyyy-MM-dd'T'HH:mm:ss'Z'";
|
||||||
|
|
||||||
static private class CellFormatter {
|
static private class CellFormatter {
|
||||||
ReconOutputMode recon_outputMode = ReconOutputMode.ENTITY_NAME;
|
ReconOutputMode recon_outputMode = ReconOutputMode.ENTITY_NAME;
|
||||||
boolean recon_blankUnmatchedCells = false;
|
boolean recon_blankUnmatchedCells = false;
|
||||||
@ -227,7 +229,9 @@ abstract public class CustomizableTabularExporterUtilities {
|
|||||||
|
|
||||||
Map<String, String> identifierSpaceToUrl = null;
|
Map<String, String> identifierSpaceToUrl = null;
|
||||||
|
|
||||||
CellFormatter() {}
|
CellFormatter() {
|
||||||
|
dateFormatter = new SimpleDateFormat(fullIso8601);
|
||||||
|
}
|
||||||
|
|
||||||
CellFormatter(JSONObject options) {
|
CellFormatter(JSONObject options) {
|
||||||
JSONObject reconSettings = JSONUtilities.getObject(options, "reconSettings");
|
JSONObject reconSettings = JSONUtilities.getObject(options, "reconSettings");
|
||||||
@ -299,7 +303,7 @@ abstract public class CustomizableTabularExporterUtilities {
|
|||||||
default:
|
default:
|
||||||
dateFormatter = date_omitTime ?
|
dateFormatter = date_omitTime ?
|
||||||
new SimpleDateFormat("yyyy-MM-dd") :
|
new SimpleDateFormat("yyyy-MM-dd") :
|
||||||
new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
|
new SimpleDateFormat(fullIso8601);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!date_useLocalTimeZone) {
|
if (!date_useLocalTimeZone) {
|
||||||
|
@ -110,7 +110,7 @@ public class HtmlTableExporter implements WriterExporter {
|
|||||||
writer.write("</td>");
|
writer.write("</td>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
writer.write("</tr>");
|
writer.write("</tr>\n");
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
// Ignore
|
// Ignore
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user