Commit 95f270f8 authored by Adrian Wuillemet's avatar Adrian Wuillemet
Browse files

#65 Correct indentation of java template

parent a6d8e1f6
......@@ -14,17 +14,17 @@
"states": {
"name": "StateMachine",
"body": "public enum $states {\n$items}\n",
"item": "$indent $name,\n"
"body": "$indent public enum $states {\n$items $indent }\n",
"item": "$indent $indent $name,\n"
},
"state": {
"name": "currentState",
"body": "public $states $state = $states.$value;\n"
"body": "$indent public $states $state = $states.$value;\n"
},
"transitions": {
"body": "public void $name(States newState) {\n$indent switch(newState) {\n$items$indent $indent default: break;\n$indent }\n}\n",
"item": "$indent $indent case States.$name:\n$indent $indent $indent $state = States.$value; break;\n"
"body": "$indent public void $name(States newState) {\n$indent $indent switch(newState) {\n$items$indent $indent $indent default: break;\n$indent $indent }\n$indent }\n",
"item": "$indent $indent $indent case States.$name:\n$indent $indent $indent $indent $state = States.$value; break;\n"
}
}
Markdown is supported
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