<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Steve,<br><br>I don't know where to fix that.<br>In <a class="header" href="eclipse-javadoc:%E2%98%82=mkgmap/src%3Cuk.me.parabola.mkgmap.osmstyle.actions%7BValueBuilder.java%E2%98%83ValueBuilder">ValueBuilder</a>.addFilter()<br>we receive the string " substring:1:14"<br>(with the leading blank) and that is not removed, so we don't match "substring".<br><br>Gerd<br><br><div>> Date: Fri, 28 Nov 2014 01:04:50 -0700<br>> From: gpetermann_muenchen@hotmail.com<br>> To: mkgmap-dev@lists.mkgmap.org.uk<br>> Subject: Re: [mkgmap-dev] Substring returns full string<br>> <br>> Hi,<br>> <br>> try without the blanks:<br>> (ncn=yes | rcn=yes) { name '${rcnname|substring:1:14}'} [0x10018 resolution<br>> 22 continue with_actions]<br>> <br>> Gerd<br>> <br>> <br>> gbbickerton wrote<br>> > I have not had this problem with my email before that I know of, however<br>> > it does not solve my problem what I want is a way to shorten names to say<br>> > the first two words as some are very long.<br>> > I have also tried <br>> > { name '${rcnname|part:"\s<2"}'} but I am not sure how to separate at<br>> > spaces I have tried ' ' etc without success<br>> <br>> <br>> <br>> <br>> <br>> --<br>> View this message in context: http://gis.19327.n5.nabble.com/Substring-returns-full-string-tp5825603p5825665.html<br>> Sent from the Mkgmap Development mailing list archive at Nabble.com.<br>> _______________________________________________<br>> mkgmap-dev mailing list<br>> mkgmap-dev@lists.mkgmap.org.uk<br>> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br></div>                                            </div></body>
</html>