https://bugzilla.wikimedia.org/show_bug.cgi?id=33478
Web browser: ---
Bug #: 33478
Summary: [SMW] 1.6 to 1.7 RC1 #ask and #show insert extra
spaces after commas in properties
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Semantic MediaWiki
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
When there are multiple values for a single property, #ask and #show prints
them in a comma delimited format, with 2 spaces after the comma. For multiple
values entered into a Semantic Forms field separated by a comma and only 1
space, #ask and #show will insert a second space.
If there are no spaces in the Semantic Forms field, then #ask and #show will
insert one when displaying it. That is (probably) the expected behavior. The
problem only occurs when there is already a space separating multiple values.
Then, the display of the values differs from the actual text of the output
values, and leads to difficult to diagnose problems.
This breaks comparisons between properties. I discovered this bug using the
Arrays extension, which removes the extra whitespace, as does almost everything
else in MediaWiki-land and HTML-land. That's probably why it took so long to
discover this bug - you can't see it without knowing it's there and
deliberately looking for it. The bug goes back to at least 1.6, which is as far
as I tested.
I will post a link to a demo in a few minutes.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l