Seems to be a problem with indentation on the
layout
and other lists, just select all of the items and unindent, then indent them again.The main issue was indeed with your indents as @[email protected] pointed out. They need to be consistent throughout your code, so you can use either a tab per nested indent or a double space. So, for example:
layout debug = borders grid a a a a b b c c d d d d
This is consistent because you have used
space space
for each indent. The issue has occurred because on one line you’ve usedspace space
, on another you’ve usedtab tab
. I fixed that throughout the code and have usedspace space
, but it was inconsistent throughout.There was one more issue on line 12 where you added curly braces around the
pattern^2
variable which confused the script:else {"{[pattern^2]} [gender] {with low white spotting|with medium white spotting|with high white spotting}"}
Simply removing those fixed that last problem:else {"[pattern^2] [gender] {with low white spotting|with medium white spotting|with high white spotting}"}
It now looks like your code works as was expected?