graphql/language/printer.py
def print_block_string(value: str, is_description: bool = False) -> str:
    """Print a block string.

    Prints a block string in the indented block form by adding a leading and trailing
    blank line. However, if a block string starts with whitespace and is a single-line,
    adding a leading blank line would strip that whitespace.
    """
    escaped = value.replace('"""', '\\"""')
    if value.startswith((" ", "\t")) and "\n" not in value:
        if escaped.endswith('"'):
            escaped += "\n"
        return f'"""{escaped}"""'
    else:
        if not is_description:
            escaped = indent(escaped)
        return f'"""\n{escaped}\n"""'
Print a block string.

    Prints a block string in the indented block form by adding a leading and trailing
    blank line. However, if a block string starts with whitespace and is a single-line,
    adding a leading blank line would strip that whitespace.
    
Print a block string.
Prints a block string in the indented block form by adding a leading and trailing
blank line. However, if a block string starts with whitespace and is a single-line,
adding a leading blank line would strip that whitespace.
Print a block string . Prints a block string in the indented block form by adding a leading and trailing blank line . However if a block string starts with whitespace and is a single - line adding a leading blank line would strip that whitespace .
def print_block_string(value: str, is_description: bool = False) -> str:
    escaped = value.replace('"""', '\\"""')
    if value.startswith((" ", "\t")) and "\n" not in value:
        if escaped.endswith('"'):
            escaped += "\n"
        return f'"""{escaped}"""'
    else:
        if not is_description:
            escaped = indent(escaped)
        return f'"""\n{escaped}\n"""'
def print_block_string ( value : str , is_description : bool = False ) -> str : escaped = value . replace ( '"""' , '\\"""' ) if value . startswith ( ( " " , "\t" ) ) and "\n" not in value : if escaped . endswith ( '"' ) : escaped += "\n" return f'"""{escaped}"""' else : if not is_description : escaped = indent ( escaped ) return f'"""\n{escaped}\n"""'
Print a block string.
Print a block string .
"""Print a block string.

    Prints a block string in the indented block form by adding a leading and trailing
    blank line. However, if a block string starts with whitespace and is a single-line,
    adding a leading blank line would strip that whitespace.
    """
value
str
is_description
bool