#NEWLINE# @ classmethod #NEWLINE# def parse_line_option_indent( cls , line ) : #NEWLINE# #INDENT# ( opt_str , separater , description_str ) = cls . cut_first_spaces_outside_bracket ( line ) #NEWLINE# logger . debug ( ( '%(line)s -> %(opt_str)r, %(separater)r, %(description_str)r' % locals ( ) ) ) #NEWLINE# if description_str . strip ( ) : #NEWLINE# #INDENT# indent = ( len ( opt_str . expandtabs ( ) ) + len ( separater . expandtabs ( ) ) ) #NEWLINE# logger . info ( 'indent: %s' , indent ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# indent = ( 2 + len ( cls . indent_re . match ( opt_str . expandtabs ( ) ) . groupdict ( ) [ 'indent' ] ) ) #NEWLINE# logger . info ( 'indent: %s' , indent ) #NEWLINE# #UNINDENT# return { #NEWLINE# #INDENT# 'option' : opt_str . strip ( ) , #NEWLINE# 'indent' : indent , #NEWLINE# #UNINDENT# }