Strip '\n' from to be generated docs