On Tue, Jun 20, 2006 at 11:19:20 +0200,
  Jens Seidel <[EMAIL PROTECTED]> wrote:
> 
> I have also trouble understanding variable expansion. According to
> http://www.wesnoth.org/wiki/VariablesWML
> | is not required if there a following space after the variable and the space
> is not eaten.

The real rule is more complicated. Letters are spanned. Isolated (not two
in a row) periods not at the end (except there is a case where it can be) are
included. Balanced brackets ([]) are also spanned.

This is described in comments in do_interpolation in 
src/serializable/string_utils.cpp (the names are from memory, but should allow
you to find the routine).

The reason for this is to allow arrays to be interpolated. This even works
if the subscripts are also variables.

_______________________________________________
Wesnoth-dev mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-dev

Reply via email to