Skip to content

Commit b399a50

Browse files
committed
BF: Builder PsychoJS code for text components formatted badly
The units parameter was being given additional quote symbols leading to a syntax error (only happened when not inheritting from default so wasn't noticed before)
1 parent 2dcadd0 commit b399a50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

psychopy/app/builder/components/text/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def writeInitCodeJS(self, buff):
124124
if self.params['units'].val == 'from exp settings':
125125
unitsStr = ""
126126
else:
127-
unitsStr = "units:'%(units)s', " % self.params
127+
unitsStr = "units : %(units)s, " % self.params
128128
# do writing of init
129129
# replaces variable params with sensible defaults
130130
inits = getInitVals(self.params, 'PsychoJS')

0 commit comments

Comments
 (0)