def str_presenter(yaml_dumper, data):
    """Use block style for multiline strings"""
    if len(data.splitlines()) > 1:
        return yaml_dumper.represent_scalar('tag:yaml.org,2002:str', data,
            style='|')
    return yaml_dumper.represent_scalar('tag:yaml.org,2002:str', data)
