[josm-dev] Broken style file table
Andrew Buck
andrew.r.buck at gmail.com
Wed Aug 8 23:17:26 BST 2012
Hi,
I seem to have broken the JOSM wiki and need the help of an admin to fix it.
I made a new JOSM mapcss style file called 'Surface - Data Entry' which is
a paint style designed to aid in entering surface tags on roads from aerial
imagery. I created a subpage of the 'Styles' page on the wiki as per the
directions for getting it included in the JOSM preferences window. The
entry shows up now, however when you try to enable the paint style you end
up getting a different style which is just called 'Surface'. This happens
because of the spaces in the URL which end up truncating the URL so that it
ends at Surfaces, instead of continuing on to Surfaces - Data Entry.
I tried changing the URL in the actual mapcss stylesheet at the following
link, but that doesn't seem to have fixed the problem:
http://josm.openstreetmap.de/wiki/Styles/Surface%20-%20Data%20Entry
When you look at the corresponding row in the table on
http://josm.openstreetmap.de/wiki/Styles you will see that the row for my
stylesheet is all garbled up, breaking the table formatting. It looks like
this table is being autogenerated by a python macro called 'Styles' which
prevents me from manually just fixing the url in that table.
I would appreciate help getting this issue resolved as quickly as possible
as anyone who currently tries to use my stylesheet will instead end up
getting the other user's stylesheet of a similar name, causing much
confusion. I have tried my best to fix this issue myself but cannot, due
to not having any admin privileges on the wiki or the trac server. I think
in order to fix the problem, either the python macro will need to be
tweaked to properly expand spaces in URL's into %20 symbols, or the page
where my stylesheet is should be moved to a new name, without the spaces
(probably just replace the spaces with underscores). As far as I know
either of these fixes will require a JOSM admin to do. Manually changing
the URL in the JOSM preferences window to include the %20 symbols does fix
the issue, so as long as the python macro properly puts these in the
problem should be solved, both for me, and for anyone who uses spaces in
their pagename in the future.
In a related issue, this stylesheet seems to have uncovered a bug in the
mapcss parser that I documented in a ticket here:
http://josm.openstreetmap.de/ticket/7935
-AndrewBuck
P.S. I sent a version of this message a few minutes ago and it bounced. I
think this was because I was not yet subscribed to the mailing list. I
subscribed and re-sent the message. Sorry if this double posts as a result
of this issue.
More information about the josm-dev
mailing list