[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 51/74: [pdfpic]: Clean up better.
From: |
G. Branden Robinson |
Subject: |
[groff] 51/74: [pdfpic]: Clean up better. |
Date: |
Fri, 28 Apr 2023 15:10:49 -0400 (EDT) |
gbranden pushed a commit to branch branden-2023-04-28
in repository groff.
commit 23432b5407b8f6f141a34176dd19b148c2cd08e4
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Thu Apr 27 08:57:21 2023 -0500
[pdfpic]: Clean up better.
* tmac/pdfpic.tmac (PDFPIC): Call `pdfpic@cleanup` before returning when
falling back to `PSPIC` for non-PDF documents.
Also annotate naming convention.
---
ChangeLog | 7 +++++++
tmac/pdfpic.tmac | 4 ++++
2 files changed, 11 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 6e062b54c..79638fb14 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2023-04-27 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ [pdfpic]: Clean up better.
+
+ * tmac/pdfpic.tmac (PDFPIC): Call `pdfpic@cleanup` before
+ returning when falling back to `PSPIC` for non-PDF documents.
+
2023-04-05 G. Branden Robinson <g.branden.robinson@gmail.com>
* tmac/tty.tmac: Add angle bracket fallbacks.
diff --git a/tmac/pdfpic.tmac b/tmac/pdfpic.tmac
index f81b66e7f..08d04d277 100644
--- a/tmac/pdfpic.tmac
+++ b/tmac/pdfpic.tmac
@@ -9,6 +9,9 @@
.\"
.\" Requires the poppler-utils package (for pdfinfo(1) and pdftops(1)).
.\" Requires running troff(1) in unsafe mode.
+.\"
+.\" Internal macro names start with `pdfpic@`; internal registers and
+.\" strings start with `pdfpic*`.
.
.do if d PDFPIC .nx
.
@@ -132,6 +135,7 @@
. as pdfpic*pspic-args \\*[pdfpic*file-name-base].eps \\$*
.
. PSPIC \\*[pdfpic*pspic-args]
+. pdfpic@cleanup
. return
. \}
.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 51/74: [pdfpic]: Clean up better.,
G. Branden Robinson <=