It worked properly in 4.11 and many previous versions over the years. Yesterday, jumped straight to current beta, and stumbled on this.
It seems that it only affects the line that immediately follows the literal. All following lines work as expected.
Please, help with solving this issue, because it's pretty counter-productive.