[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 02/10: Support HTML with formatting w/ "fallback" pic.
From: |
G. Branden Robinson |
Subject: |
[groff] 02/10: Support HTML with formatting w/ "fallback" pic. |
Date: |
Wed, 27 Dec 2023 20:45:48 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit ccb4f3a4278e4c49e0744179e708cd5cb2a1e86e
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Dec 27 14:49:11 2023 -0600
Support HTML with formatting w/ "fallback" pic.
Support pic(1) pictures when formatting HTML and using "fallback" pic
macros.
* tmac/pic.tmac (PS): Call `HTML-IMAGE` at end of macro definition.
* tmac/pic.tmac (PF): Call `HTML-IMAGE-END` at end of macro definition.
(`PE` and `PY` call `PF`, and so are also handled.)
Fixes https://savannah.gnu.org/bugs/?65047> (2/2). Thanks to Hans
Bezemer and Dave Kemper for the report.
---
ChangeLog | 13 +++++++++++++
tmac/pic.tmac | 2 ++
2 files changed, 15 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 22b1c36f9..182173085 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2023-12-27 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ Support pic(1) pictures when formatting HTML and using
+ "fallback" pic macros.
+
+ * tmac/pic.tmac (PS): Call `HTML-IMAGE` at end of macro
+ definition.
+ * tmac/pic.tmac (PF): Call `HTML-IMAGE-END` at end of macro
+ definition. (`PE` and `PY` call `PF`, and so are also handled.)
+
+ Fixes https://savannah.gnu.org/bugs/?65047> (2/2). Thanks to
+ Hans Bezemer and Dave Kemper for the report.
+
2023-12-23 G. Branden Robinson <g.branden.robinson@gmail.com>
* tmac/an.tmac (EE): Fix latent logic error; use `if` for
diff --git a/tmac/pic.tmac b/tmac/pic.tmac
index b9b09b0d2..a2da4e576 100644
--- a/tmac/pic.tmac
+++ b/tmac/pic.tmac
@@ -5,9 +5,11 @@
.sp .3v
.ne 0\\$1+1v+\n(.Vu
.in \\n(.lu-\\n(.iu-0\\$2/2u>?0
+.HTML-IMAGE
..
.de PF
.in
+.HTML-IMAGE-END
..
.de PE
.PF
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 02/10: Support HTML with formatting w/ "fallback" pic.,
G. Branden Robinson <=