[#1452] Text Preview fails - Fix PEP8