62e3cf format-table: before outputting a color, check if colors are available

1 file Authored by Lennart Poettering 4 years ago, Committed by Packit Service 4 years ago,
    format-table: before outputting a color, check if colors are available
    
    This is in many cases redundant, as a similar check is done by various
    callers already, but in other cases (where we read the color from a
    static table for example), it's nice to let the color check be done by
    the table code itself, and since it doesn't hurt in the other cases just
    do it again.
    
    (cherry picked from commit a22318e55492af721879d8692ed039144696bb08)
    
    Related: #1689832
    
    patch_name: 0127-format-table-before-outputting-a-color-check-if-colo.patch
    present_in_specfile: true
    location_in_specfile: 127
    squash_commits: true
    
        
file modified
+3 -3