Permalink
Browse files

Replaced '\n' with '_n' in arguments when exporting to CSV.

  • Loading branch information...
Fabian Yamaguchi
Fabian Yamaguchi committed Mar 14, 2012
1 parent ab5e1d8 commit 3c1d3f2f24255144c1a07192426a648a706912c2
Showing with 7 additions and 2 deletions.
  1. +7 −2 CSVExporter.java
  2. BIN CodeSensor.jar
View
@@ -431,11 +431,16 @@ private static void handleArgumentList(CommonTreeWithLines argumentList, int lev
for(int i = 1; i < nChildren; i+=2){
CommonTreeWithLines argument = (CommonTreeWithLines) argumentList.getChild(i);
CommonTreeWithLines terminator = (CommonTreeWithLines)argumentList.getChild(i+1);
-
+ String content;
+
+
String csvLine = "arg" + separator + argument.getLine() + ":" + argument.getCharPositionInLine();
csvLine += separator + terminator.getLine() + ":" + terminator.getCharPositionInLine();
csvLine += separator + level;
- csvLine += separator + children2String(argument, false);
+
+ content = children2String(argument, false);
+ content = content.replaceAll("\n", "_n");
+ csvLine += separator + content;
System.out.println(csvLine);
traverseChildren(argument, level);
View
Binary file not shown.

0 comments on commit 3c1d3f2

Please sign in to comment.