def string_presenter(self, dumper, data):
if '<STR_LIT:\n>' in data:<EOL><INDENT>return dumper.represent_scalar('<STR_LIT>', data, style='<STR_LIT:|>')<EOL><DEDENT>else:<EOL><INDENT>return dumper.represent_scalar('<STR_LIT>', data)<EOL><DEDENT>
Presenter to force yaml.dump to use multi-line string style.