lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master da6c8c9 5/9: Do not treat tab as whitespace i


From: Greg Chicares
Subject: [lmi-commits] [lmi] master da6c8c9 5/9: Do not treat tab as whitespace in UponPasteCensus()
Date: Wed, 15 Feb 2017 20:26:59 -0500 (EST)

branch: master
commit da6c8c91fc7d8a594cbab65ac5ff1f2e4ed3a29c
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Do not treat tab as whitespace in UponPasteCensus()
    
    Tab ('\t') delimits pasted columns, so '>> std::ws' potentially
    discarded delimiters, which seems to have been a really bad idea.
---
 census_view.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/census_view.cpp b/census_view.cpp
index 05b3473..7414f23 100644
--- a/census_view.cpp
+++ b/census_view.cpp
@@ -29,6 +29,7 @@
 #include "contains.hpp"
 #include "default_view.hpp"
 #include "edit_mvc_docview_parameters.hpp"
+#include "facets.hpp"                   // tab_is_not_whitespace_locale()
 #include "illustration_view.hpp"
 #include "illustrator.hpp"
 #include "input.hpp"
@@ -1615,6 +1616,7 @@ void CensusView::UponPasteCensus(wxCommandEvent&)
     std::vector<Input> cells;
 
     std::istringstream iss_census(census_data);
+    iss_census.imbue(tab_is_not_whitespace_locale());
     std::string line;
 
     // Get header line; parse into field names.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]