def formatLong(title, message, frontTab=True, spacing=16):
 lines = textwrap.wrap(textwrap.dedent(message).strip(), width=50)
 returnString = ''
 i = 1
 if (len(lines) > 0):
  if frontTab:
   returnString += (' DCTB %s%s' % (('{0: <%s}' % spacing).format(title), lines[0]))
  else:
   returnString += (' %s%s' % (('{0: <%s}' % (spacing - 1)).format(title), lines[0]))
 while (i < len(lines)):
  if frontTab:
   returnString += (('\n DCTB ' + (' ' * spacing)) + lines[i])
  else:
   returnString += (('\n' + (' ' * spacing)) + lines[i])
  i += 1
 return returnString

def formatLong ( title , message , frontTab = True , spacing = 16 ) : lines = textwrap . wrap ( textwrap . dedent ( message ) . strip ( ) , width = 50 ) returnString = '' i = 1 if ( len ( lines ) > 0 ) : if frontTab : returnString += ( ' DCTB %s%s' % ( ( '{0: <%s}' % spacing ) . format ( title ) , lines [ 0 ] ) ) else : returnString += ( ' %s%s' % ( ( '{0: <%s}' % ( spacing - 1 ) ) . format ( title ) , lines [ 0 ] ) ) while ( i < len ( lines ) ) : if frontTab : returnString += ( ( '\n DCTB ' + ( ' ' * spacing ) ) + lines [ i ] ) else : returnString += ( ( '\n' + ( ' ' * spacing ) ) + lines [ i ] ) i += 1 return returnString
print a long title:message with our standardized formatting .