def _format_blockstr(long_line):
    """ Wraps a urlsafe ghid.
    """
    shortened_length = 36
    indent = '    '
    out = []
    for slice_start in range(0, len(long_line), shortened_length):
        out.append(indent + long_line[slice_start:slice_start +
            shortened_length])
    return '\n'.join(out)
