from typing import Tuple


def select_descriptions(brief: str, detailed: str) -> Tuple[str, str]:
    """Select the approprate brief and detailed descriptions.

    Sometimes one of the descriptions is missing. This method makes sure there is always at least
    a brief description.

    Args:
        brief: Brief description as found in the XML.
        detailed: Detailed description as found in the XML.

    Returns:
        brief: Brief description to use.
        detailed: Detailed description to use.
    """
    if not brief and detailed:
        if "\n" in detailed:
            brief, detailed = detailed.split("\n", maxsplit=1)
            return brief, detailed.strip()
        return detailed, ""

    return brief, detailed