Fix text direction for code sections

my previous PR had a bug so now all code sections are aligned right :cry: 
This one fixes that.