From: <ha...@us...> - 2010-04-13 16:03:21
|
Revision: 12847 http://jmol.svn.sourceforge.net/jmol/?rev=12847&view=rev Author: hansonr Date: 2010-04-13 16:03:15 +0000 (Tue, 13 Apr 2010) Log Message: ----------- Modified Paths: -------------- trunk/Jmol/src/org/jmol/script/ScriptEvaluator.java Modified: trunk/Jmol/src/org/jmol/script/ScriptEvaluator.java =================================================================== --- trunk/Jmol/src/org/jmol/script/ScriptEvaluator.java 2010-04-13 16:00:48 UTC (rev 12846) +++ trunk/Jmol/src/org/jmol/script/ScriptEvaluator.java 2010-04-13 16:03:15 UTC (rev 12847) @@ -7348,8 +7348,8 @@ if (filename.startsWith("@") && filename.length() > 1) { String s = getStringParameter(filename.substring(1), false); htParams.put("fileData", s); - loadScript = new StringBuffer("var " + filename.substring(1) + " = " - + Escape.escape(s) + ";\n " + loadScript); + loadScript = new StringBuffer("{\nvar " + filename.substring(1) + " = " + + Escape.escape(s) + ";\n " + loadScript + "\n}\n"); } else if (isInline) { htParams.put("fileData", filename); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |