#65: space counts as a valid character in categories -------------------+-------------------------------------------------------- Reporter: bob | Owner: dom Type: defect | Status: new Priority: low | Component: openguides Version: | Severity: minor Keywords: | -------------------+-------------------------------------------------------- This is possibly effects locales as well. http://london.openguides.org/index.cgi?id=Princess_Royal%2C_CR0_3LH&vers...
note the extra comma http://london.openguides.org/index.cgi?id=Princess_Royal%2C_CR0_3LH&vers...
is the diff http://london.openguides.org/index.cgi?id=Princess_Royal%2C_CR0_3LH&vers... http://london.openguides.org/index.cgi?id=Princess_Royal%2C_CR0_3LH&vers... is the diff which caused the extra comma
#65: User input routines for categories (and locales?) do not correctly strip whitespace ---------------------+------------------------------------------------------ Reporter: bob | Owner: dom Type: defect | Status: new Priority: low | Component: openguides Version: | Severity: minor Resolution: | Keywords: ---------------------+------------------------------------------------------ Changes (by dom):
* summary: space counts as a valid character in categories => User input routines for categories (and locales?) do not correctly strip whitespace
Comment:
Or, to put it another way, we need to strip spaces (and other whitespace?) in our input routines:
s/\s+$// s/^\s+//
#65: User input routines for categories (and locales?) do not correctly strip whitespace ---------------------+------------------------------------------------------ Reporter: bob | Owner: dom Type: defect | Status: new Priority: low | Component: openguides Version: | Severity: minor Resolution: | Keywords: ---------------------+------------------------------------------------------ Comment (by dom):
That should be
{{{ s/\s+$// s/^\s+// }}}
openguides-tickets@lists.openguides.org