fix linebreaks and arabic text