I am trying to print the text in various colors to highlight the differences. But I am getting one character of space starting of the text on the output.
How to remove that space?
I am using a class:
class color:
   RED = '\033[44m' 
   DARKCYAN = '\033[36m'
   CYAN = '\033[96m'
   PURPLE = '\033[95m'
   GREEN = '\033[92m'
   YELLOW = '\033[93m'
   BOLD = '\033[1m'
   END = '\033[0m'
using above:
source_b = "main"
dest_b = "feature"
print(color.YELLOW, 'Listing Differneces Between Branches:', color.BOLD, source_b, 'and', dest_b, color.END)
In the output:
 Listing Differences Between Branches:  main and feature 
not only at starting, but also everywhere trying to use color class...
as you can see a space in between Branches:  main as here I used Branches:',color.BOLD,source_b in the code.
 
     
    