From b4377f517ec489b7e86fe61e6f06fd8e0a2feef5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 18 Nov 2011 14:34:04 +0200 Subject: Assume we have 78 character per line instead of 79 for Windows portability --- cli/source.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) { -- cgit v1.1