﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
9566	Small glitches/improvements in MapCSS validator	naoliv	team	"'''First issue:'''
Using a test with quotes like this:

{{{
*[name = *""addr:housename""] {
        throwWarning: tr(""{0} and {1} are the same"", ""{0.key}"", ""{0.value}"");
}
}}}

and validating something that fits on this rule we can see a duplicated warning message:

{{{
name and addr:housename are the same - name and addr:housename are the same (1)
}}}

This also happens when using (?i) for case insensitive matching, like this:

{{{
*[highway $= _link][name =~ /^(?i)acesso.*/] {
        throwWarning: tr(""Don't use acesso in link highways"");
}
}}}

we we also get a duplicated message:

{{{
Dont use acesso in link highways - Dont use acesso in link highways (1)
}}}

'''Second issue:'''
Instead doing this:

{{{
*[highway=motorway_link],
*[highway=trunk_link],
*[highway=primary_link],
*[highway=secondary_link],
*[highway=tertiary_link] (…)
}}}

I can use this:
{{{
*[highway $= _link] (…)
}}}

But I can't get the '''real''' value of this key:
""{0}.value"" gives me only ""_link"" and ""{0}.tag"" gives me the full rule ""highway=_link"" (but still without the real value of the highway key)
Isn't it possible to get the real value?

It's similar with this other case:
{{{
*[name][source] {
        throwWarning: tr(""name: {0} source: {1}"", ""{0.value}"", ""{1.value}"");
}
}}}

It's not possible to use the real values of name or source.

'''Third issue:'''

It seems that the validator doesn't display single quotes like this:

{{{
*[highway] {
        throwWarning: tr(""foo 'something' foo"");
}
}}}

Using this:

{{{
*[highway] {
        throwWarning: tr(""foo \'something\' foo"");
}
}}}

It gives this as the output:
{{{
tr(""foo \'something\'foo"") - tr(""foo \'something\'foo"") (1)
}}}

Using double quotes also gives a wrong output:

{{{
*[highway] {
        throwWarning: tr(""foo ""something"" foo"");
}
}}}"	defect	closed	normal	14.01	Core validator		fixed		
