Fix variance in line endings

committer: Jon Skeet <skeet@pobox.com>
This commit is contained in:
Jon Skeet 2008-08-14 20:33:26 +01:00 committed by unknown
parent f92c545f49
commit 3c38991607

View File

@ -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 {