Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 3c1d3f2f24255144c1a07192426a648a706912c2 1 parent ab5e1d8
Fabian Yamaguchi authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 CSVExporter.java
  2. BIN  CodeSensor.jar
View
9 CSVExporter.java
@@ -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
BIN  CodeSensor.jar
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.