[Nix-dev] Newlines in nix strings - good look

Lluís Batlle i Rossell viriketo at gmail.com
Sun May 9 19:36:12 CEST 2010


Hello,

often I hit the problem of wanting a string in a newline in some case, else
no string. Something like:
''
  blabla

  ${if x then "xxx" else "yyy"}

  ${if z then "zzz" else "yyy"}

  blublu
''

I don't like the result having two void lines. A nice example of what I don't
want you can find at the upstart jobs. :)
Have you thought of a comfortable nix source that looks simple both in source
and result?

Thank you,
Lluís.



More information about the nix-dev mailing list