logo separator

[mkgmap-dev] default style lines enhancements

From Ticker Berkin rwb-mkgmap at jagit.co.uk on Thu Jul 23 16:46:56 BST 2020

Hi Gerd

It can only be:
  ${tagname|filter:args}
or
  ${tagname|filter1:"arg with spaces"}

and, for the subst filter, the from=>to counts as a single arg.

In the example:
  ... '${ref|subst: =>} ${mkgmap:dest_hint|subst:;=> |subst:/=> }'
spaces are insignificant either side of the first | and before the :
but are significant after the : and before subsequent |.

The style manual says:
 If the argument contains spaces or symbols it should be quoted.
   For backward compatibility, most cases where you have spaces or
 symbols do not actually need to be quoted, however we would
 recommend that you do for clarity.  If you need a pipe symbol
 or a closing curly backet, then you must use quotes.

Ticker

On Thu, 2020-07-23 at 10:40 +0000, Gerd Petermann wrote:
> Hi Ticker,
> 
> I am not a style guru, but I think the quotes for the subst function
> are even more confusing. If you use quotes I would suggest something
> like
> ${destination:ref|subst:" " => ""}
> instead of
> ${destination:ref|subst: =>}
> if that really gives the same result.
> 
> Gerd



More information about the mkgmap-dev mailing list