Opened 6 years ago
Closed 6 years ago
#18408 closed enhancement (fixed)
[PATCH] There should be a method to trim lists of strings
| Reported by: | taylor.smock | Owned by: | Don-vip |
|---|---|---|---|
| Priority: | normal | Milestone: | 19.12 |
| Component: | Core | Version: | |
| Keywords: | mapcss | Cc: |
Description
Specific use case::
*["ref"] { color: hsb_color(CRC32_checksum(join_list(";", trim_list(sort_list(split(";", tag("ref")))))) / 4294967296, 0.9, 0.7); }
If there are spaces in the ref tag, then A1; A2 does not have the same color as A2; A1.
Attachments (2)
Change History (6)
by , 6 years ago
| Attachment: | 18408.patch added |
|---|
comment:2 by , 6 years ago
| Milestone: | → 19.12 |
|---|---|
| Owner: | changed from to |
| Status: | new → assigned |
comment:3 by , 6 years ago
Replying to Don-vip:
The patch doesn't apply nicely?
That is odd. It applied nicely in my josm-clean directory. I've uploaded the patch again, generated from my "clean" JOSM source directory, just in case. (I edited the first patch, which also stripped some white space, since my working directory has additional modifications, in this case Functions.java also has parent_tags function, which looks like I was trying to filter the returned tags based off of other tags, and it looks like I never finished it).



Add
trim_listwith test