Write pretty-printed lines to a file.
We set the soft and hard right margins to very large values to avoid line breaks in virtually all cases. Setting these margins to ``infinity'' is not supported.
In the future, we may improve the pretty-printer to take into consideration a specified right margin, breaking and identing lines appropriately.
Function:
(defun pprinted-lines-to-file (lines filepath state) (declare (xargs :stobjs (state))) (declare (xargs :guard (and (msg-listp lines) (stringp filepath)))) (let ((__function__ 'pprinted-lines-to-file)) (declare (ignorable __function__)) (state-global-let* ((fmt-soft-right-margin 1000000 set-fmt-soft-right-margin) (fmt-hard-right-margin 1000000 set-fmt-hard-right-margin)) (b* (((mv channel state) (open-output-channel! filepath :character state)) (state (pprinted-lines-to-channel lines channel state)) (state (close-output-channel channel state))) (acl2::value nil)))))