pythonizer
pythonizer copied to clipboard
Translating a line with multiple bash-style "and"s / "or"s generates hanging indents
Translating a line with multiple bash-style "and"s / "or"s generates hanging indents. For example:
($ec1 = $ar2equivc{$r1})
|| ($ec1 = $ar2equivc{"$r1:stub"})
|| ($ec1 = $r1);
Leaves the indent level set to 1 afterwards.
$delayed_block_closure needs to be incremented, not set to 1, then loop and decrement back to 0 inserting }
Fixed in https://github.com/snoopyjc/pythonizer