File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/util
gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/features Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ public String prettyPrint() {
144144 final StringBuilder builder = new StringBuilder ();
145145 prettyPrint (builder , "" );
146146 final String pretty = builder .toString ();
147- return pretty .isEmpty () ? pretty : pretty .substring (0 , pretty .length () - 1 );
147+ return pretty .isEmpty () ? pretty : pretty .substring (0 , pretty .length () - System . lineSeparator (). length () );
148148 }
149149
150150 private void prettyPrint (final StringBuilder builder , final String prefix ) {
Original file line number Diff line number Diff line change @@ -821,7 +821,7 @@ private static <T> List<org.hamcrest.Matcher<? super T>> getMatchers(final T[] i
821821 public List <TreeNode > parseTree (final String asciiTree ) {
822822 if (asciiTree .isEmpty ()) return Collections .emptyList ();
823823
824- final List <String > lines = Arrays .asList (asciiTree .split (System . lineSeparator () ));
824+ final List <String > lines = Arrays .asList (asciiTree .split (" \\ R" ));
825825
826826 final List <TreeNode > roots = new ArrayList <>();
827827 final Map <Integer , TreeNode > levelMap = new HashMap <>();
You can’t perform that action at this time.
0 commit comments