def convert_to_yaml(<EOL>name, value, indentation, indexOfColon, show_multi_line_character):
strings = []<EOL>if isinstance(value, list):<EOL><INDENT>if len(value) == <NUM_LIT:1>and isinstance(value[<NUM_LIT:0>], str):<EOL><INDENT>value = value[<NUM_LIT:0>]<EOL><DEDENT>elif len(value) == <NUM_LIT:1>and isinstance(value[<NUM_LIT:0>], list)and len(value[<NUM_LIT:0>]) == <NUM_LIT:1>and isinstance(value[<NUM_LIT:0>][<NUM_LIT:0>], str):<EOL><INDENT>value = value[<NUM_LIT:0>][<NUM_LIT:0>]<EOL><DEDENT><DEDENT>if isinstance(value, str):<EOL><INDENT>strings.append("<STR_LIT>" % (<EOL>'<STR_LIT:U+0020>' * indentation, name, '<STR_LIT:U+0020>' * (indexOfColon-len(name)),<EOL>indent_multiline_string(value, indentation+<NUM_LIT:4>,<EOL>show_multi_line_character)))<EOL><DEDENT>elif isinstance(value, list):<EOL><INDENT>strings.append("<STR_LIT>" % (<EOL>'<STR_LIT:U+0020>' * indentation, name, '<STR_LIT:U+0020>' * (indexOfColon-len(name))))<EOL>for outer in value:<EOL><INDENT>if isinstance(outer, list)and len(outer) == <NUM_LIT:1>and isinstance(outer[<NUM_LIT:0>], str):<EOL><INDENT>outer = outer[<NUM_LIT:0>]<EOL><DEDENT>if isinstance(outer, str):<EOL><INDENT>strings.append("<STR_LIT>" % (<EOL>'<STR_LIT:U+0020>' * (indentation+<NUM_LIT:4>), indent_multiline_string(<EOL>outer, indentation+<NUM_LIT:8>, show_multi_line_character)))<EOL><DEDENT>elif isinstance(outer, list):<EOL><INDENT>strings.append("<STR_LIT>" % ('<STR_LIT:U+0020>' * (indentation+<NUM_LIT:4>)))<EOL>for inner in outer:<EOL><INDENT>if isinstance(inner, str):<EOL><INDENT>strings.append("<STR_LIT>" % (<EOL>'<STR_LIT:U+0020>' * (indentation+<NUM_LIT:8>), indent_multiline_string(<EOL>inner, indentation+<NUM_LIT:12>,<EOL>show_multi_line_character)))<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>return strings<EOL>
converts a value list into yaml syntax
    :param name: name of object (example: phone)
    :type name: str
    :param value: object contents
    :type value: str, list(str), list(list(str))
    :param indentation: indent all by number of spaces
    :type indentation: int
    :param indexOfColon: use to position : at the name string (-1 for no space)
    :type indexOfColon: int
    :param show_multi_line_character: option to hide "|"
    :type show_multi_line_character: boolean
    :returns: yaml formatted string array of name, value pair
    :rtype: list(str)