From: Hendrik B. <nh...@us...> - 2010-09-24 16:17:43
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/script In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv28346/src/games/stendhal/server/script Modified Files: DumpTransitionsEx.java Log Message: fixed Graphvis output by escaping {} (fixes #3074944) Index: DumpTransitionsEx.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/script/DumpTransitionsEx.java,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** DumpTransitionsEx.java 19 Dec 2009 21:21:28 -0000 1.14 --- DumpTransitionsEx.java 24 Sep 2010 16:17:29 -0000 1.15 *************** *** 90,94 **** + getStateName(transition.getNextState())); final String transitionName = getExtendedTransitionName(transition); ! dumpedTable.append(" [ label = \"" + transitionName + "\" ];\r\n"); } } --- 90,94 ---- + getStateName(transition.getNextState())); final String transitionName = getExtendedTransitionName(transition); ! dumpedTable.append(" [ label = \"" + transitionName.replace("{", "\\{").replace("}", "\\}") + "\" ];\r\n"); } } *************** *** 157,160 **** --- 157,161 ---- entryName = entryName.substring(prefix.length()); } + entryName = entryName.replace("{", "\\{").replace("}", "\\}"); return entryName; } |