Permalink
Browse files

escape quotes in a fashion compatible with read.csv

  • Loading branch information...
1 parent 697270d commit 85f050635fe2e07a7db5478d45a54cd180b54c29 @jjallaire jjallaire committed Mar 27, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/cpp/session/modules/presentation/PresentationLog.cpp
@@ -160,7 +160,7 @@ namespace {
std::string csvString(std::string str)
{
boost::algorithm::replace_all(str, "\n", "\\n");
- boost::algorithm::replace_all(str, "\"", "\\\"");
+ boost::algorithm::replace_all(str, "\"", "\"\"");
return "\"" + str + "\"";
}

0 comments on commit 85f0506

Please sign in to comment.