codegenerator: shrink text headers of the generated files