I’m exporting using a template similar to the following example. I get a newline even if the field does not exist. Is there a way to suppress the blank lines in the exported text?
Export Template:
[<$view field=title/>]
id=<$view field=id/>
desc=<$view field=desc/>
<%if [<currentTiddler>has:field[exit-north]] %>north={{!!exit-north}}<%endif%>
<%if [<currentTiddler>has:field[exit-south]] %>south={{!!exit-south}}<%endif%>
<%if [<currentTiddler>has:field[exit-east]] %>east={{!!exit-east}}<%endif%>
<%if [<currentTiddler>has:field[exit-west]] %>west={{!!exit-west}}<%endif%>
Export Text:
[1]
id=center-room
desc=Center Room
north=2
south=3
east=4
west=5
[2]
id=north-room
desc=North Room
south=1
[3]
id=south-room
desc=South Room
north=1
[4]
id=east-room
desc=East Room
west=1
[5]
id=west-room
desc=West Room
east=1