* [9front] [PATCH] mothra: display figure captions correctly.
@ 2021-09-08 6:38 james
0 siblings, 0 replies; only message in thread
From: james @ 2021-09-08 6:38 UTC (permalink / raw)
To: 9front
this patch means that figure captions under images
will not be displayed in-line with the image.
---
diff 87a823332f9eaa4ff1e72f8524f6e59d1cc4f407 5da26d78e10d75b8a7502c9d80c9238d62f01419
--- a/sys/src/cmd/mothra/html.h Mon Sep 6 22:04:35 2021
+++ b/sys/src/cmd/mothra/html.h Wed Sep 8 07:35:57 2021
@@ -158,6 +158,8 @@
Tag_font,
Tag_form,
Tag_frame, /* rm 5.8.97 */
+ Tag_figure,
+ Tag_figcaption,
Tag_h1,
Tag_h2,
Tag_h3,
--- a/sys/src/cmd/mothra/html.syntax.c Mon Sep 6 22:04:35 2021
+++ b/sys/src/cmd/mothra/html.syntax.c Wed Sep 8 07:35:57 2021
@@ -35,6 +35,8 @@
[Tag_font] "font", END,
[Tag_form] "form", END,
[Tag_frame] "frame", NOEND,
+[Tag_figure] "figure", END,
+[Tag_figcaption] "figcaption", END,
[Tag_h1] "h1", END,
[Tag_h2] "h2", END,
[Tag_h3] "h3", END,
--- a/sys/src/cmd/mothra/rdhtml.c Mon Sep 6 22:04:35 2021
+++ b/sys/src/cmd/mothra/rdhtml.c Wed Sep 8 07:35:57 2021
@@ -1142,6 +1142,10 @@
case Tag_style:
g.state->isscript=1;
break;
+ case Tag_figure:
+ case Tag_figcaption:
+ g.linebrk=1;
+ break;
}
break;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-08 9:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-08 6:38 [9front] [PATCH] mothra: display figure captions correctly james
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).