https://linen.dev logo
Title
a

Alex P

03/21/2023, 8:39 AM
On another note: I am using some
assign
and a
formData
expressions at the top of my response (referenced via
bodyFileName
) and it seems that they get replaced by an empty line, i.e., I have a few empty lines before my JSON response body starts. For now I just cram everything in one line and start the JSON object there, too, but it is really unreadable 😕
{{#assign 'a'}}...{{/assign}}{{#assign 'b'}}...{{/assign}}{{formData ...}}{
  "id": ...
...
}
Is there a better way to suppress the empty lines in this case?
t

Tom

03/21/2023, 10:57 AM
You can wrap it all in the
{{#trim}}
helper to remove whitespace lines.
🎉 1
a

Alex P

03/21/2023, 11:45 AM
Oh wow, awesome! Thanks! 🥳