Fix for null string and single blank string
This commit is contained in:
16
src/Mod/OpenSCAD/OpenSCAD_rc.py
Normal file
16
src/Mod/OpenSCAD/OpenSCAD_rc.py
Normal file
File diff suppressed because one or more lines are too long
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user