|
From: <caw...@us...> - 2007-04-30 12:04:28
|
Revision: 2392
http://svn.sourceforge.net/rubyeclipse/?rev=2392&view=rev
Author: cawilliams
Date: 2007-04-30 05:04:25 -0700 (Mon, 30 Apr 2007)
Log Message:
-----------
when showing string representation of a string, surround with quotes
Modified Paths:
--------------
trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/util/ASTUtil.java
Modified: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/util/ASTUtil.java
===================================================================
--- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/util/ASTUtil.java 2007-04-30 12:04:08 UTC (rev 2391)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/util/ASTUtil.java 2007-04-30 12:04:25 UTC (rev 2392)
@@ -117,7 +117,7 @@
if (node instanceof DStrNode)
return stringRepresentation((DStrNode) node);
if (node instanceof StrNode)
- return ((StrNode) node).getValue().toString();
+ return '"' + ((StrNode) node).getValue().toString() + '"';
log("Reached node type we don't know how to represent: "
+ node.getClass().getName());
return node.toString();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|