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.0 required=5.0 tests=none autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 32307 invoked from network); 26 Jan 2022 17:59:06 -0000 Received: from 4ess.inri.net (216.126.196.42) by inbox.vuxu.org with ESMTPUTF8; 26 Jan 2022 17:59:06 -0000 Received: from mimir.eigenstate.org ([206.124.132.107]) by 4ess; Wed Jan 26 12:51:43 -0500 2022 Received: from abbatoir.myfiosgateway.com (pool-74-108-56-225.nycmny.fios.verizon.net [74.108.56.225]) by mimir.eigenstate.org (OpenSMTPD) with ESMTPSA id 9935ef46 (TLSv1.2:ECDHE-RSA-AES256-SHA:256:NO) for <9front@9front.org>; Wed, 26 Jan 2022 09:51:08 -0800 (PST) Message-ID: To: 9front@9front.org Date: Wed, 26 Jan 2022 12:51:06 -0500 From: ori@eigenstate.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: open patented SVG cache-scale self-signing-aware backend Subject: Re: [9front] mothra: fix rendering of tag Reply-To: 9front@9front.org Precedence: bulk Do you have an example site or html snippet that I can compare against? Quoth Kristo : > Hi all, > > Mothra does not currently render text inside tags inline > similar to , but instead treats them like
 which is actually
> incorrect behavior. The following small patch should fix this issue.
> 
> diff 9d43029ff984435111eff658308a44b4f3eee1cc uncommitted
> --- a/sys/src/cmd/mothra/rdhtml.c
> +++ b/sys/src/cmd/mothra/rdhtml.c
> @@ -982,6 +982,7 @@
>  			g.state->size=NORMAL;
>  			break;
>  		case Tag_code:
> +		case Tag_samp:
>  			g.state->font=CWIDTH;
>  			g.state->size=NORMAL;
>  			break;
> @@ -1113,7 +1114,6 @@
>  		case Tag_xmp:
>  			htmlerror(g.name, g.lineno, "<%s> deprecated", tag[g.tag].name);
>  		case Tag_pre:
> -		case Tag_samp:
>  			g.state->indent=0;
>  			g.state->pre=1;
>  			g.state->font=CWIDTH;
> @@ -1203,7 +1203,6 @@
>  		case Tag_listing:
>  		case Tag_menu:
>  		case Tag_ol:
> -		case Tag_samp:
>  		case Tag_title:
>  		case Tag_ul:
>  		case Tag_xmp:
>