Taking into account newlines and multiple spaces using white-space: pre