I had inadvertently terminated a data line when reaching a tab character after
initial data was supplied. I tested the lightning file and it now appears to
read in correctly.
void Element::AddData(string d)
{
- int string_end=-1;
int string_start = d.find_first_not_of(" \t");
if (string_start > 0) {
d.erase(0,string_start);
- string_end = d.find_first_of(" \t");
- if (string_end > 0) d.erase(string_end,d.size()-string_end);
}
data_lines.push_back(d);
}