From 3c38991607e993bc90c307c7a680fba97b77ecb4 Mon Sep 17 00:00:00 2001 From: Jon Skeet Date: Thu, 14 Aug 2008 20:33:26 +0100 Subject: [PATCH] Fix variance in line endings committer: Jon Skeet --- src/google/protobuf/compiler/csharp/csharp_message.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/protobuf/compiler/csharp/csharp_message.cc b/src/google/protobuf/compiler/csharp/csharp_message.cc index c6c094e13..fa03938a3 100644 --- a/src/google/protobuf/compiler/csharp/csharp_message.cc +++ b/src/google/protobuf/compiler/csharp/csharp_message.cc @@ -45,7 +45,7 @@ void PrintFieldComment(io::Printer* printer, const FieldDescriptor* field) { // print group bodies so we cut off after the first line. string def = field->DebugString(); printer->Print("// $def$\r\n", - "def", def.substr(0, def.find_first_of('\r\n'))); + "def", def.substr(0, def.find_first_of('\n'))); } struct FieldOrderingByNumber {