# Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

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)

@@ -1179,10 +1179,62 @@
 _unicode
+,%0A                          default_flow_style=False
 )%0A

Set default_flow_style for yaml jinja filter