Applies patch from scrutinizer-ci and fixes text exports