def munge_condition_str(s):
    """if conditions can be quite long.  In practice the graphs can be a
    bit less unwieldy if conditions containing and/or are split
    across multiple lines.
    """
    return s.replace(' and ', ' and\n').replace(' or ', ' or\n')