AFAIK, BBCode is not fully specified to cover this but all the relevant BBCode examples are on single lines. So it is unlikely to be a bug.
The normal way to enable multi-line tagging is to add HTML breaks <br/> to make the extra lines explicit between the tags. That works here too:
bbcode [i] italic with <br/> <br/> html line break [/i] example.
bbcode italic with
html line break example.