diff --git a/main/src/com/google/refine/exporters/HtmlTableExporter.java b/main/src/com/google/refine/exporters/HtmlTableExporter.java index 2f14ba12c..1c4163ee2 100644 --- a/main/src/com/google/refine/exporters/HtmlTableExporter.java +++ b/main/src/com/google/refine/exporters/HtmlTableExporter.java @@ -61,9 +61,12 @@ public class HtmlTableExporter implements WriterExporter { public void startFile(JSONObject options) { try { writer.write("\n"); - writer.write(""); + writer.write("<head>\n"); + writer.write("<title>"); writer.write(ProjectManager.singleton.getProjectMetadata(project.id).getName()); - writer.write("\n"); + writer.write("\n"); + writer.write("\n"); + writer.write("\n"); writer.write("\n"); writer.write("\n"); diff --git a/main/tests/server/src/com/google/refine/tests/exporters/HtmlExporterTests.java b/main/tests/server/src/com/google/refine/tests/exporters/HtmlExporterTests.java index bf3fbd50d..47b38ca0e 100644 --- a/main/tests/server/src/com/google/refine/tests/exporters/HtmlExporterTests.java +++ b/main/tests/server/src/com/google/refine/tests/exporters/HtmlExporterTests.java @@ -117,7 +117,9 @@ public class HtmlExporterTests extends RefineTest { } Assert.assertEquals(writer.toString(), "\n" + - "" + TEST_PROJECT_NAME + "\n" + + "\n" + "" + TEST_PROJECT_NAME + "\n" + + "\n" + + "\n" + "\n" + "
\n" + "\n" + @@ -142,7 +144,9 @@ public class HtmlExporterTests extends RefineTest { } Assert.assertEquals(writer.toString(), "\n" + - "" + TEST_PROJECT_NAME + "\n" + + "\n" + "" + TEST_PROJECT_NAME + "\n" + + "\n" + + "\n" + "\n" + "
column0column1
\n" + "\n" + @@ -167,7 +171,9 @@ public class HtmlExporterTests extends RefineTest { } Assert.assertEquals(writer.toString(), "\n" + - "" + TEST_PROJECT_NAME + "\n" + + "\n" + "" + TEST_PROJECT_NAME + "\n" + + "\n" + + "\n" + "\n" + "
row0cell0row0cell1
\n" + "\n" +
column0column1column2