diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-06-03 12:04:55 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-06-03 12:04:55 +0200 |
commit | f3c7cd177b85669f4e25a6b3322ce79531adcaa1 (patch) | |
tree | d29b1d9713da744f261de5dda1bda809dc2a4c8c /cli/source.cxx | |
parent | 31f5102fa8694980891274006eb15b5bebdb28d6 (diff) |
Use formatted string when calculating option length
Diffstat (limited to 'cli/source.cxx')
-rw-r--r-- | cli/source.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cli/source.cxx b/cli/source.cxx index 2b976d4..883e49d 100644 --- a/cli/source.cxx +++ b/cli/source.cxx @@ -208,7 +208,7 @@ namespace l++; // ' ' seperator if (doc.size () > 0) - l += doc[0].size (); + l += format (doc[0], ot_plain).size (); else l += 5; // <arg> } @@ -267,8 +267,9 @@ namespace if (doc.size () > 0) { - os << escape_str (format (doc[0], ot_plain)); - l += doc[0].size (); + string s (format (doc[0], ot_plain)); + os << escape_str (s); + l += s.size (); } else { |