So put a #slurp after ['x' in your first attempt/example. #slurp eats EOLs.

Gary

On Thursday, 5 April 2018 21:15:47 UTC+10, wysiwyg wrote:
>
> Ah ! good idea!! :-)
>
> It tried this:
> columns: [
>           ['x'
> #for $record in $span($hour_delta=32).records
> , ${record.dateTime.raw}000 #slurp
> #end for
>           ],
>
> and it output this:
>
>   columns: [
>           ['x'
> , 1522811100000 , 1522811400000 , 1522811700000 , 1522812000000 , 
> 1522812300000 , 1522812600000 
>
>
>
> But if I try to move the #for one line upper (next to 'x'): 
> columns: [
>           ['x' #for $record in $span($hour_delta=32).records
> , ${record.dateTime.raw}000 #slurp
> #end for
>           ],
>
> it goes back to "column" output.
>
>
>
>
>
>
>
>
>
>
> 2018-04-05 12:30 GMT+02:00 mwall <goo...@lancet.mit.edu <javascript:>>:
>
>> try slurping, like this:
>>
>> #for $record in $span($hour_delta=32).records
>>     , ${record.dateTime.raw}000 #slurp
>> #end for
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "weewx-user" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/weewx-user/DV_L9WA1YsE/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> weewx-user+...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to