Function: kexport:koutline

kexport:koutline is an autoloaded, interactive and byte-compiled function defined in kexport.el.

Signature

(kexport:koutline &optional SOFT-NEWLINES-FLAG)

Documentation

Export current buffer's koutline to the same named file with a ".html" suffix.

Return the pathname of the html file created.

By default, this retains newlines within cells as they are. With optional prefix arg, SOFT-NEWLINES-FLAG, hard newlines are not used. Also converts Urls and Klinks into Html hyperlinks.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/kotl/kexport.el
;;; ************************************************************************
;;; Public functions
;;; ************************************************************************

;;;###autoload
(defun kexport:koutline (&optional soft-newlines-flag)
  "Export current buffer's koutline to the same named file with a \".html\" suffix.
Return the pathname of the html file created.

By default, this retains newlines within cells as they are.  With
optional prefix arg, SOFT-NEWLINES-FLAG, hard newlines are not
used.  Also converts Urls and Klinks into Html hyperlinks."
  (interactive "P")
  (let ((export-from (hypb:buffer-file-name))
        (output-to (concat (file-name-sans-extension (hypb:buffer-file-name)) ".html")))
    (if (and (hypb:buffer-file-name) (string-match "\\.kotl?\\'" (hypb:buffer-file-name)))
	(kexport:html export-from output-to soft-newlines-flag)
      (error "(kexport:koutline): current buffer must be a Koutline .kotl file"))
    output-to))