Hey ! that's perfect !!!!

I was not aware this #slurp could be used anywhere (outside #for etc..)
good to know !!
Good image"slurp eats EOLs", the words sounds like eating something :D

Many thanks, Gary and Matthew !




Le jeudi 5 avril 2018 14:29:02 UTC+2, gjr80 a écrit :
>
> 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 <[email protected]>:
>>
>>> 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 
>>> [email protected].
>>> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to