Stop adding a space to the end of lines for descriptor binary data.

pull/785/head
Jon Skeet 9 years ago
parent 75a18a39ca
commit ccd76802fa
  1. 2
      src/google/protobuf/compiler/csharp/csharp_umbrella_class.cc

@ -166,7 +166,7 @@ void UmbrellaClassGenerator::WriteDescriptor(io::Printer* printer) {
// TODO(jonskeet): Consider a C#-escaping format here instead of just Base64. // TODO(jonskeet): Consider a C#-escaping format here instead of just Base64.
std::string base64 = FileDescriptorToBase64(file_); std::string base64 = FileDescriptorToBase64(file_);
while (base64.size() > 60) { while (base64.size() > 60) {
printer->Print("\"$base64$\", \n", "base64", base64.substr(0, 60)); printer->Print("\"$base64$\",\n", "base64", base64.substr(0, 60));
base64 = base64.substr(60); base64 = base64.substr(60);
} }
printer->Print("\"$base64$\"));\n", "base64", base64); printer->Print("\"$base64$\"));\n", "base64", base64);

Loading…
Cancel
Save