On another note: I am using some `assign` and a `f...
# wiremock-java
a
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 😕
Copy code
{{#assign 'a'}}...{{/assign}}{{#assign 'b'}}...{{/assign}}{{formData ...}}{
  "id": ...
...
}
Is there a better way to suppress the empty lines in this case?
t
You can wrap it all in the
{{#trim}}
helper to remove whitespace lines.
🎉 1
a
Oh wow, awesome! Thanks! 🥳