#NEWLINE# @ when ( 'I assign {value} to paragraph_format.space_{side}' ) #NEWLINE# def when_I_assign_value_to_paragraph_format_space( context , value , side ) : #NEWLINE# #INDENT# paragraph_format = context . paragraph_format #NEWLINE# prop_name = ( 'space_%s' % side ) #NEWLINE# new_value = { #NEWLINE# #INDENT# 'None' : None , #NEWLINE# 'Pt(12)' : Pt ( 12 ) , #NEWLINE# 'Pt(18)' : Pt ( 18 ) , #NEWLINE# #UNINDENT# } [ value ] #NEWLINE# setattr ( paragraph_format , prop_name , new_value )