From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 4203 invoked from network); 8 Sep 2021 09:12:36 -0000 Received: from 4ess.inri.net (216.126.196.42) by inbox.vuxu.org with ESMTPUTF8; 8 Sep 2021 09:12:36 -0000 Received: from out0.migadu.com ([94.23.1.103]) by 4ess; Wed Sep 8 02:38:34 -0400 2021 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=biobuf.link; s=key1; t=1631083105; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xS+HHx0s1X+6M9f9ED2Be7FAN+JV8mc9KVjfmG1H39s=; b=fXBrBQ9xiFlzpWmjkkglykxHzEesFdWlP6emWD6LmgvNm8mpoWZPFJruc4ks0r0WRqaudI 4ACbEpyJkBZjbqUdOsB2yWptc/8CzQFKWVJNp+O45PyqS05amt7CRaWwk2+Bz2QChpOWAk zjtAmxO9nNkzN6wrlJEBS6IlyuhxM5E= Date: Wed, 08 Sep 2021 06:38:23 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: james@biobuf.link Message-ID: To: 9front@9front.org X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: james@biobuf.link List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: realtime-java firewall hosting-scale metadata-scale extension GPU backend Subject: [9front] [PATCH] mothra: display figure captions correctly. Reply-To: 9front@9front.org Precedence: bulk this patch means that figure captions under images=0Awill not be displaye= d in-line with the image.=0A=0A---=0Adiff 87a823332f9eaa4ff1e72f8524f6e59= d1cc4f407 5da26d78e10d75b8a7502c9d80c9238d62f01419=0A--- a/sys/src/cmd/mo= thra/html.h Mon Sep 6 22:04:35 2021=0A+++ b/sys/src/cmd/mothra/html.h We= d Sep 8 07:35:57 2021=0A@@ -158,6 +158,8 @@=0A Tag_font,=0A Tag_form,= =0A Tag_frame, /* rm 5.8.97 */=0A+ Tag_figure,=0A+ Tag_figcaption,=0A T= ag_h1,=0A Tag_h2,=0A Tag_h3,=0A--- a/sys/src/cmd/mothra/html.syntax.c M= on Sep 6 22:04:35 2021=0A+++ b/sys/src/cmd/mothra/html.syntax.c Wed Sep = 8 07:35:57 2021=0A@@ -35,6 +35,8 @@=0A [Tag_font] "font", END,=0A [Tag_= form] "form", END,=0A [Tag_frame] "frame", NOEND,=0A+[Tag_figure] "figur= e", END,=0A+[Tag_figcaption] "figcaption", END,=0A [Tag_h1] "h1", END,= =0A [Tag_h2] "h2", END,=0A [Tag_h3] "h3", END,=0A--- a/sys/src/cmd/moth= ra/rdhtml.c Mon Sep 6 22:04:35 2021=0A+++ b/sys/src/cmd/mothra/rdhtml.c = Wed Sep 8 07:35:57 2021=0A@@ -1142,6 +1142,10 @@=0A case Tag_style:=0A= g.state->isscript=3D1;=0A break;=0A+ case Tag_figure:=0A+ case T= ag_figcaption:=0A+ g.linebrk=3D1;=0A+ break;=0A }=0A break;