lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 1dae3a2 2/3: Allow empty comments in rate tab


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 1dae3a2 2/3: Allow empty comments in rate tables
Date: Tue, 22 Nov 2016 14:08:33 +0000 (UTC)

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

    Allow empty comments in rate tables
---
 rate_table.cpp |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/rate_table.cpp b/rate_table.cpp
index 5ce9f33..cb9ee4c 100644
--- a/rate_table.cpp
+++ b/rate_table.cpp
@@ -1346,7 +1346,9 @@ std::string* table_impl::parse_string
 {
     throw_if_duplicate_record(ostr.is_initialized(), field, line_num);
 
-    if(value.empty())
+    // With slight regret, allow the comments field to be empty because
+    // some historical files have put commentary in table name instead.
+    if(value.empty() && e_field_comments != field)
         {
         fatal_error()
             << "non-empty value must be specified for the field '"



reply via email to

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