Fix for null string and single blank string

This commit is contained in:
Keith Sloan
2017-04-28 13:28:02 +01:00
parent df1e2642d0
commit 8c391f07d7
2 changed files with 20 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1041,6 +1041,10 @@ def addValue(t,v,p):
def p_text_action(p) :
'text_action : text LPAREN keywordargument_list RPAREN SEMICOL'
# If text string is null ignore
if p[3]['text'] == "" or p[3]['text'] == " " :
p[0] = []
return
t = 'text ( text="'+p[3]['text']+'"'
t = addValue(t,'size',p)
t = addString(t,'spacing',p)