Page 2 of 2
Re: Semicolon Problem
Posted: Sun Apr 14, 2013 9:26 pm
by Vadi
I use a ;; instead, seems to work much better for me.
A semicolon doesn't affect your scripts unless you used it within expandAlias.
Re: Semicolon Problem
Posted: Tue Dec 06, 2016 8:48 pm
by SlySven
One other place where semi-colon detection causes fun is when setting more complicated strings to be used in QStyleSheets for things like labels. The semicolon is
required to separate multiple QSS (a bit like CSS) arguments and it took me a while to debug why:
Code: Select all
setLabelStyleSheet( "counter", "QLabel{color:blue; background-color:green} QLabel::hover{color:blue; background-color:red}" )
didn't work for a label called "counter".
A quick and dirty change for me was to use the setting to modify the (Mudlet) command separator to be the vertical bar '|', which is not something that has significance in Lua AFAIAA but is suggestive to *nix shell users (or should that be '&' instead)...