If you start WPI.
Click on config
add a new item,
In the 'Description' field add a long line of text, including a 'return' (newline).
It incorrectly writes the desc[pn] field with a line feed (newline)
CODE
prog[pn]=['HP TCP/IP Port Monitor'];
desc[pn]=['Installs "HP Standard TCP/IP Port" as an available port to connect printers with.
This is needed to talk to HP jet Direct network printers'];
uid[pn]=['HPTCPIPPORTMONITOR'];
dflt[pn]=['yes'];
cat[pn]=['Drivers'];
forc[pn]=['no'];
cmd1[pn]=['"%root%\\Win\\batch\\Add_Printer_portmon.cmd"'];
pn++;
desc[pn]=['Installs "HP Standard TCP/IP Port" as an available port to connect printers with.
This is needed to talk to HP jet Direct network printers'];
uid[pn]=['HPTCPIPPORTMONITOR'];
dflt[pn]=['yes'];
cat[pn]=['Drivers'];
forc[pn]=['no'];
cmd1[pn]=['"%root%\\Win\\batch\\Add_Printer_portmon.cmd"'];
pn++;
If you restart WPI.hta, you get 'unterminated string constant' script error.
This may possibly be a bug with the interpreting of the desc field (terminating at the newline and not the field end marker)
If I manually edit the config.js file and remove the 'return' it works fine..
On a side note, I struggle to appreciate the syntax that one uses for 'condition'.
Reading through the (limited) help file I can ony find breif reference to it.
I have insufficient (mental) storage capacity to even contemplate learning JavaScript.
So if it is 'standard' js condition evalation phrases then I will need some sort of reasonable documentation that lists the syntax, modifiers and some good working examples..
Perhaps I've missed a guide here somewhere.. If I have, my 'Googling' sucks..! Link anyone?
