summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-11-18 14:34:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-11-18 14:34:04 +0200
commitb4377f517ec489b7e86fe61e6f06fd8e0a2feef5 (patch)
tree4d73f3309a6ab297168be5f402ab5558d0ab614f /cli
parent510c8ceff6e3da603b54cf9061f6efd777c66752 (diff)
Assume we have 78 character per line instead of 79 for Windows portability
Diffstat (limited to 'cli')
-rw-r--r--cli/source.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/source.cxx b/cli/source.cxx
index c5d47f0..1e01072 100644
--- a/cli/source.cxx
+++ b/cli/source.cxx
@@ -312,7 +312,11 @@ namespace
if (d[i] == ' ' || d[i] == '\n')
e = i;
- if (d[i] == '\n' || i - b == 79 - length_)
+ // Assume we have 78 characters instead of 79 per line to make
+ // sure we get the same output on Windows (which has two character
+ // for a newline).
+ //
+ if (d[i] == '\n' || i - b == 78 - length_)
{
if (b != 0)
{