code: def literal_unicode_representer(dumper, data):
      
      if '\n' in data:
          return dumper.represent_scalar(u'tag:yaml.org,2002:str', data, style='|')
      else:
          return dumper.represent_scalar(u'tag:yaml.org,2002:str', data)
docs: Use |- literal syntax for long strings