def temp_or_none(t):
    """Return the supplied temperature as a string in the format
    "%5.1f" or a hyphen, if unavailable (None).
    """

    if t is None:
        return "    -"

    return "%5.1f" % t