Changeset 1095


Ignore:
Timestamp:
Jun 23, 2011, 10:48:55 PM (6 years ago)
Author:
stefan
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/src/jlatexeditor/tools/PackageParser.scala

    r1094 r1095  
    6262      println("  <package name=\"" + pack.name + "\"" + debPackageString + ">")
    6363      for (command <- pack.commands.values) {
    64         val optArgString = if (command.optionalArgs.isEmpty) "" else " " + command.optionalArgs(0)
    65         println("    <command name=\"" + command.name + "\" argCount=\"" + command.argCount + "\" optionalArg=\"" + optArgString + " />")
     64        val optArgString = if (command.optionalArgs.isEmpty) "" else " optionalArg=\"" + command.optionalArgs(0) + "\""
     65        println("    <command name=\"" + command.name + "\" argCount=\"" + command.argCount + "\"" + optArgString + " />")
    6666      }
    6767      for (env <- pack.environments.values) {
    68         val optArgString = if (env.optionalArgs.isEmpty) "" else " " + env.optionalArgs(0)
    69         println("    <environment name=\"" + env.name + "\" argCount=\"" + env.argCount + "\" optionalArg=\"" + optArgString + " />")
     68        val optArgString = if (env.optionalArgs.isEmpty) "" else " optionalArg=\"" + env.optionalArgs(0) + "\""
     69        println("    <environment name=\"" + env.name + "\" argCount=\"" + env.argCount + "\"" + optArgString + " />")
    7070      }
    7171      println("  </package>")
Note: See TracChangeset for help on using the changeset viewer.