@User you are right, using the Edit Attr: value does some weird things.
In the mean time do this: edit the code element (q key) use the <ALL> Edit Attr and put this text:
name=s1 only_toplevel=false
value=".control
tran 0.01n 100n
plot clk_g clk
.endc"