Is there a way to have spacing in scripts such as new lines not appear in resulting html pages?
You can <send> or <fmt> data directly to format it as you wish.
Otherwise, non-Vortex tags and text are output as-is (except for leading whitespace which is stripped) so newlines are left in. Blank lines between Vortex statements can cause extra newlines to be printed. You can either delete the blank line, or put a comment there which will prevent the extra newline.