[pan2/testing: 7/279] fix



commit 4c0de4e2b24a896c43021b02171270b4e4e5ffb2
Author: K. Haley <haleykd users sf net>
Date:   Thu Aug 5 14:56:07 2010 -0600

    fix

 pan/usenet-utils/text-massager.cc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/pan/usenet-utils/text-massager.cc b/pan/usenet-utils/text-massager.cc
index 9a2907a..6856476 100644
--- a/pan/usenet-utils/text-massager.cc
+++ b/pan/usenet-utils/text-massager.cc
@@ -125,7 +125,8 @@ namespace
        if (map_end != max_map.find(line.leader))
          max_map[line.leader] = MAX(max_map[line.leader], line_len );
        else
-         max_map.insert( std::make_pair(line.leader, line_len) );
+         // use 12 as the minimum line length
+         max_map.insert( std::make_pair(line.leader, MAX(line_len, 12) ) );
      }
 
      for (lines_cit it=lines.begin(), end=lines.end(); it!=end; ++it)



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