I want to left justify the right part of a string. I am writing an IRC Bot's HELP command and I want the description to be left justified at the same width throughout:
List of commands:
## ! Say a Text
## execute Execute an IRC command
## help Help for commands
ljust works for a whole string, but how do I do this on a part of a string only?
This is my current code for generating the string:
format.color( "## ", format.LIME_GREEN ) + self.commands[ cmd ][1].__doc__.format( format.bold( cmd ) ).splitlines()[0].strip()