Keep linebreaks and generalize code