Cut off paragraph in various file formats