Maybe you should remove these blank lines between code lines. It creates different code blocks in docs.