File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 5050Print a string `str` to the `display` with the style given by the `crayon`. 
5151""" 
5252function  _text__styled_print (display:: Display , str:: AbstractString , crayon:: Crayon )
53-     (! display. has_color ||  crayon ==  _TEXT__DEFAULT) &&  return  _text__print (display, str)
53+     (! display. has_color ||  crayon ==  _TEXT__DEFAULT ||  crayon ==  _TEXT__EMPTY_CRAYON) && 
54+         return  _text__print (display, str)
5455
5556    _text__print (display, string (crayon) *  str *  _TEXT__STRING_RESET)
5657    return  nothing 
Original file line number Diff line number Diff line change @@ -92,13 +92,14 @@ Define the format of the borders in the tables printed with the text back end.
9292end 
9393
9494#  Create some default decorations to reduce allocations.
95- const  _TEXT__RESET               =  crayon "" 
96- const  _TEXT__DEFAULT             =  crayon "" 
9795const  _TEXT__BOLD                =  crayon "" 
98- const  _TEXT__DARK_GRAY           =  crayon "" 
99- const  _TEXT__CYAN                =  crayon "" 
10096const  _TEXT__BOLD_UNDERLINE      =  crayon "" 
97+ const  _TEXT__CYAN                =  crayon "" 
98+ const  _TEXT__DARK_GRAY           =  crayon "" 
10199const  _TEXT__DARK_GRAY_UNDERLINE =  crayon "" 
100+ const  _TEXT__DEFAULT             =  crayon "" 
101+ const  _TEXT__EMPTY_CRAYON        =  crayon "" 
102+ const  _TEXT__RESET               =  crayon "" 
102103
103104#  Convert the reset crayon to string to reduce allocations.
104105const  _TEXT__STRING_RESET =  string (_TEXT__RESET)
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments