Change Matlab output postprocessing to delete blank lines only at the start and end, not in the middle.