diff options
author | randomdan <randomdan@localhost> | 2010-12-29 21:59:54 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2010-12-29 21:59:54 +0000 |
commit | e375384b754bf1044a38628d840909ea29880f7b (patch) | |
tree | 0b9d2d176a0a37577a5c5e0be3f164c330d51188 /project2/fileRows.cpp | |
parent | Fix row numbering in rowSets to behave as before (1 upwards, not 0 upwards) (diff) | |
download | project2-e375384b754bf1044a38628d840909ea29880f7b.tar.bz2 project2-e375384b754bf1044a38628d840909ea29880f7b.tar.xz project2-e375384b754bf1044a38628d840909ea29880f7b.zip |
Remove file create date for not being the create date
Add option for keeping the blank lines in file rows
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++; |