Преглед на файлове

Fix variance in line endings

committer: Jon Skeet <skeet@pobox.com>
Jon Skeet преди 17 години
родител
ревизия
3c38991607
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/google/protobuf/compiler/csharp/csharp_message.cc

+ 1 - 1
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.
   // print group bodies so we cut off after the first line.
   string def = field->DebugString();
   string def = field->DebugString();
   printer->Print("// $def$\r\n",
   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 {
 struct FieldOrderingByNumber {