diff options
| author | Kyle Meyer | 2024-06-09 13:06:28 -0400 |
|---|---|---|
| committer | Kyle Meyer | 2024-06-09 16:54:38 -0400 |
| commit | 5a125fb5a9736bd3c67cf6ff9acc185d8e2260e2 (patch) | |
| tree | dcadcaa7be32c0edb4087e0d4139368f9409083e /lisp/org/ob-java.el | |
| parent | e1cc2d1f61836e1da08817524999878b639e6761 (diff) | |
| download | emacs-5a125fb5a9736bd3c67cf6ff9acc185d8e2260e2.tar.gz emacs-5a125fb5a9736bd3c67cf6ff9acc185d8e2260e2.zip | |
Update to Org 9.7.3
Diffstat (limited to 'lisp/org/ob-java.el')
| -rw-r--r-- | lisp/org/ob-java.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/org/ob-java.el b/lisp/org/ob-java.el index c0dafbdceba..fd62063577a 100644 --- a/lisp/org/ob-java.el +++ b/lisp/org/ob-java.el | |||
| @@ -341,9 +341,13 @@ is simplest to expand the code block from the inside out." | |||
| 341 | (imports-val (assq :imports params)) | 341 | (imports-val (assq :imports params)) |
| 342 | (imports (if imports-val | 342 | (imports (if imports-val |
| 343 | (split-string (org-babel-read (cdr imports-val) nil) " ") | 343 | (split-string (org-babel-read (cdr imports-val) nil) " ") |
| 344 | nil))) | 344 | nil)) |
| 345 | (prologue (cdr (assq :prologue params))) | ||
| 346 | (epilogue (cdr (assq :epilogue params)))) | ||
| 345 | (with-temp-buffer | 347 | (with-temp-buffer |
| 348 | (when prologue (insert prologue "\n")) | ||
| 346 | (insert body) | 349 | (insert body) |
| 350 | (when epilogue (insert "\n" epilogue)) | ||
| 347 | 351 | ||
| 348 | ;; wrap main. If there are methods defined, but no main method | 352 | ;; wrap main. If there are methods defined, but no main method |
| 349 | ;; and no class, wrap everything in a generic main method. | 353 | ;; and no class, wrap everything in a generic main method. |