diff options
Diffstat (limited to 'project2/fileRows.cpp')
-rw-r--r-- | project2/fileRows.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/project2/fileRows.cpp b/project2/fileRows.cpp index b7d0c7e..7251a9f 100644 --- a/project2/fileRows.cpp +++ b/project2/fileRows.cpp @@ -11,6 +11,7 @@ FileRows::FileRows(const xmlpp::Element * p) : path(p->get_attribute_value("path")), fieldSep(p->get_attribute_value("fieldSep")[0]), quoteChar(p->get_attribute_value("quoteChar")[0]), + keepBlankRows(p->get_attribute_value("keepBlankRows") == "true"), newline(p->get_attribute_value("newline")), encoding(p->get_attribute_value("encoding")) { @@ -101,7 +102,7 @@ FileRows::execute(const RowProcessor * rp) const curCol++; } } - if (!mkCols && !values.empty()) { + if (!mkCols && (keepBlankRows || !values.empty())) { while (values.size() < columns.size()) { values.push_back(ValPtr(new Glib::ustring())); curCol++; |