def format_repository_listing(repositories):
    """Returns a formatted list of repositories.

    Args:
        repositories (list): A list of repositories.

    Returns:
        The formated list as string
    """
    out = ""
    i = 1
    for r in repositories:
        out += (f"{i:>4} {r.get('name', '??')}\n"
                f"     {r.get('description', '-')}\n"
                f"     {r.get('url', '??')}\n\n")
        i += 1

    return out