Commit 3502289b authored by Tim Stadtmüller's avatar Tim Stadtmüller Committed by Jaco Hofmann
Browse files

Can now print more complex Feautures

parent 5c5215e4
......@@ -33,8 +33,8 @@ class FeatureTclPrinter(prefix: String = "") {
* @return String containing Tcls commands to write f into
* a dict called <prefix>features.
**/
def toTcl(f: Feature): String = f.props map {
case (name, value) => s"$pre ${f.name} $name $value"
def toTcl(f: Feature): String = f.props.value map {
case (name, value) => s"$pre ${f.name} $name ${value.toTCL}"
} mkString NL
def toTcl(fs: Seq[Feature]): String = fs.map(toTcl).mkString(NL)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment