Skip to content

Commit

Permalink
don't print out <table_data/> tags if noData=true
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Nov 23, 2012
1 parent 88b0ecc commit 467528e
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -439,7 +439,7 @@ protected void startTable(Table table) {

if (format == Format.CSV) {
csvWriter.writeRecord(table.getColumnNames());
} else if (format == Format.XML) {
} else if (!noData && format == Format.XML) {
write("<table_data name=\"", table.getName(), "\">\n");
}
} catch (IOException e) {
Expand Down Expand Up @@ -522,7 +522,7 @@ protected void write(String... data) {
}

protected void finishTable(Table table) {
if (format == Format.XML) {
if (!noData && format == Format.XML) {
write("</table_data>\n");
}

Expand Down

0 comments on commit 467528e

Please sign in to comment.