(outp_eject_page): Always make sure that a page is open upon return.
[pspp-builds.git] / src / output / output.c
index d590a38e14d2954fd4a66a15acaec6fbb67aea11..ffaa7eb8c52d303247f96595cc426c77375de19f 100644 (file)
@@ -1162,16 +1162,14 @@ outp_close_page (struct outp_driver *d)
     }
 }
 
-/* Ejects the paper on device D, if a page is open and is not
-   blank. */
+/* Ejects the page on device D, if a page is open and non-blank,
+   and opens a new page.  */
 void
 outp_eject_page (struct outp_driver *d)
 {
   if (d->page_open && d->cp_y != 0)
-    {
-      outp_close_page (d);
-      outp_open_page (d);
-    }
+    outp_close_page (d);
+  outp_open_page (d);
 }
 
 /* Returns the width of string S, in device units, when output on