#!/usr/bin/python3
"""
    Prints a text with 2 new lines after
    special character

"""


def text_indentation(text):
    """
        Replace special character with 2 new lines
    """
    if type(text) is not str:
        raise TypeError("text must be a string")

    for ch in [':', '.', '?']:
        if ch in text:
            text = text.replace(ch, ch+'\n')
    s = [s.strip() for s in text.split('\n')]
    print("\n\n".join(s), end='')

287c619b676d55f91ecef5d6d5660027dd6a19e4
<mask token>

<mask token>


def text_indentation(text):
    """
        Replace special character with 2 new lines
    """
    if type(text) is not str:
        raise TypeError('text must be a string')
    for ch in [':', '.', '?']:
        if ch in text:
            text = text.replace(ch, ch + '\n')
    s = [s.strip() for s in text.split('\n')]
    print('\n\n'.join(s), end='')

#!/usr/bin/python3
"""
    Prints a text with 2 new lines after
    special character

"""


def text_indentation(text):
    """
        Replace special character with 2 new lines
    """
    if type(text) is not str:
        raise TypeError("text must be a string")

    for ch in [':', '.', '?']:
        if ch in text:
            text = text.replace(ch, ch+'\n')
    s = [s.strip() for s in text.split('\n')]
    print("\n\n".join(s), end='')
