[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.
- [lmi-commits] [lmi] master updated (0cfdd92 -> 59797a5), Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master a352f9e 2/9: Restore original facet get_table() implementation, Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master da6c8c9 5/9: Do not treat tab as whitespace in UponPasteCensus(),
Greg Chicares <=
- [lmi-commits] [lmi] master a16705a 4/9: Add a tab-is-not-ws facet, Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master 9a78453 7/9: Fix defect introduced 20160517T2303: tests not updated, Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master 1f9c757 8/9: Make certain unit tests more general, Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master 4d92a38 6/9: Allow empty strings to be pasted into a census, Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master fc4057e 3/9: Genericize, Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master 59797a5 9/9: Make unit tests pastable into GUI, Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master 45a1834 1/9: Remove a dead usenet reference, Greg Chicares, 2017/02/15