remove extra newline from enclosedBy in events.js