def _get_line_indent(src, line, indent):
 if (not (indent or line)):
  return line
 idt = []
 for c in src:
  if (c not in [' DCTB ', ' ']):
   break
  idt.append(c)
 return (''.join(idt) + line.strip())

def _get_line_indent ( src , line , indent ) : if ( not ( indent or line ) ) : return line idt = [ ] for c in src : if ( c not in [ ' DCTB ' , ' ' ] ) : break idt . append ( c ) return ( '' . join ( idt ) + line . strip ( ) )
indent the line with the source line .