src/module-impl.lisp (output-c-excursion): Remove redundant `~&'.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 5 Jan 2016 16:29:45 +0000 (16:29 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 29 May 2016 13:40:40 +0000 (14:40 +0100)
There's no need to have both an explicit call to `fresh-line' and `~&'
on the front of the following `format' string.  The `fresh-line' call is
the right one to leave: otherwise the new line (if any) is started after
we've called `position-aware-stream-line', which will therefore give us
the wrong answer.

src/module-impl.lisp

index 206b5e6..873e091 100644 (file)
           (funcall thunk)
           (when (typep stream 'position-aware-stream)
             (fresh-line stream)
-            (format stream "~&#line ~D ~S~%"
+            (format stream "#line ~D ~S~%"
                     (1+ (position-aware-stream-line stream))
                     (let ((path (stream-pathname stream)))
                       (if path (namestring path) "<sod-output>")))))