LTR

aaa
bbb
ccc

LTR, empty inline after.

aaa
bbb

LTR, empty inline before.

bbb
ccc

LTR, empty inline before and after.

bbb

RTL

aaa
bbb
ccc

RTL, empty inline after.

aaa
bbb

RTL, empty inline before.

bbb
ccc

RTL, empty inline before and after.

bbb