
import json
import yaml

__all__ = [
    'to_json_string',
    'to_yaml_string',
]


def to_json_string(value, indent=4, sort_keys=False, separators=(',', ':')):
    return json.dumps(value, indent=indent, separators=separators,
                      sort_keys=sort_keys)


def to_yaml_string(value, indent=4, allow_unicode=True):
    return yaml.safe_dump(value, indent=indent, allow_unicode=allow_unicode)


import json
import yaml

__all__ = [
    'to_json_string',
    'to_yaml_string',
]


def to_json_string(value, indent=4, sort_keys=False, separators=(',', ':')):
    return json.dumps(value, indent=indent, separators=separators,
                      sort_keys=sort_keys)


def to_yaml_string(value, indent=4, allow_unicode=True):
    return yaml.safe_dump(value, indent=indent, allow_unicode=allow_unicode,
                          default_flow_style=False)

Set default_flow_style for yaml jinja filter
Set default_flow_style for yaml jinja filter
  
  import json
  import yaml
  
  __all__ = [
      'to_json_string',
      'to_yaml_string',
  ]
  
  
  def to_json_string(value, indent=4, sort_keys=False, separators=(',', ':')):
      return json.dumps(value, indent=indent, separators=separators,
                        sort_keys=sort_keys)
  
  
  def to_yaml_string(value, indent=4, allow_unicode=True):
-     return yaml.safe_dump(value, indent=indent, allow_unicode=allow_unicode)
+     return yaml.safe_dump(value, indent=indent, allow_unicode=allow_unicode,
+                           default_flow_style=False)
  
Set default_flow_style for yaml jinja filter
## Code Before:

import json
import yaml

__all__ = [
    'to_json_string',
    'to_yaml_string',
]


def to_json_string(value, indent=4, sort_keys=False, separators=(',', ':')):
    return json.dumps(value, indent=indent, separators=separators,
                      sort_keys=sort_keys)


def to_yaml_string(value, indent=4, allow_unicode=True):
    return yaml.safe_dump(value, indent=indent, allow_unicode=allow_unicode)

## Instruction:
Set default_flow_style for yaml jinja filter
## Code After:

import json
import yaml

__all__ = [
    'to_json_string',
    'to_yaml_string',
]


def to_json_string(value, indent=4, sort_keys=False, separators=(',', ':')):
    return json.dumps(value, indent=indent, separators=separators,
                      sort_keys=sort_keys)


def to_yaml_string(value, indent=4, allow_unicode=True):
    return yaml.safe_dump(value, indent=indent, allow_unicode=allow_unicode,
                          default_flow_style=False)
