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, T_TVD_MIME_EPI autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 18139 invoked from network); 18 Oct 2023 18:52:10 -0000 Received: from bsd.lv (HELO mandoc.bsd.lv) (66.111.2.12) by inbox.vuxu.org with ESMTPUTF8; 18 Oct 2023 18:52:10 -0000 Received: from fantadrom.bsd.lv (localhost [127.0.0.1]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id a72e152e for ; Wed, 18 Oct 2023 18:52:09 +0000 (UTC) Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id c88debed for ; Wed, 18 Oct 2023 18:52:08 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by ams.source.kernel.org (Postfix) with ESMTP id A41E2B8244F for ; Wed, 18 Oct 2023 18:52:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 846A5C433C8 for ; Wed, 18 Oct 2023 18:52:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697655127; bh=ldxecw/a+hsfmoURQeWrutr57VW82xRGAqoIDcXwcnw=; h=Date:From:To:Subject:References:In-Reply-To:From; b=pHcZ2Ahsw4EIFdYqL/Dmr+ztOtjevhMD03rEw8gK3rNHsLsBYkLlqbsoBZoZRjDX9 kVsJnm3TtH6r1Ohs86gh+EUbBNBK+l0MU+01VJ5P6td1jbyPJzeFAhCtOfxslIKxLx mKsZ187nlJNb/NNvLwGS98HQBsF5/6IXAsKturRrCb0KoCrPhkBr5nDeirkxYDfRey UFhH3RrmFuQgrkp2XX3boL/4KqO8TEtDgZ973xspER9Sdp6D4z1uAfEMasQxCPfF81 c6IMDjJX1skYtABlwe/Z9SMxo2x/1d4MGuLXu8kgSCHk+slvdEi/6yAYy9gyyc9jor /UbK7EHR905Jg== Date: Wed, 18 Oct 2023 20:52:03 +0200 From: Alejandro Colomar To: tech@mandoc.bsd.lv Subject: Re: mandoc -man -Thtml: unwanted line break after bullet (.IP) Message-ID: References: X-Mailinglist: mandoc-tech Reply-To: tech@mandoc.bsd.lv MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="NXu9tmJSmnU4YlPY" Content-Disposition: inline In-Reply-To: --NXu9tmJSmnU4YlPY Content-Type: text/plain; protected-headers=v1; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Date: Wed, 18 Oct 2023 20:52:03 +0200 From: Alejandro Colomar To: tech@mandoc.bsd.lv Subject: Re: mandoc -man -Thtml: unwanted line break after bullet (.IP) On Wed, Oct 18, 2023 at 06:20:35PM +0200, Ingo Schwarze wrote: > Hi Alejandro, >=20 > Ingo Schwarze wrote on Wed, Oct 18, 2023 at 02:04:46AM +0200: >=20 > > 3. teach list_continues() that \[bu] is the same as \(bu. >=20 > This part is now fixed, too, see the commit below. >=20 > The guesswork required to deal with .IP certainly isn't perfect yet, > but lets walk one step at a time, and let's start with issues that > actually cause inconvenience in real-world manual pages. >=20 > Yours, > Ingo >=20 >=20 > Log Message: > ----------- > Support the GNU-specific syntax ".IP \\[bu]" for bullet lists in man(7)= =20 > pages that Alejandro Colomar recommends in the "Lists" subsection of > https://man7.org/linux/man-pages/man7/man-pages.7.html#STYLE_GUIDE . >=20 > For example, this will improve HTML formatting of the first list in=20 > the subsection "Feature test macros understood by glibc" on the page > https://manpages.debian.org/bookworm/manpages/ftm.7.en.html . >=20 > Issue reported by Alejandro Colomar . LGTM. Thanks, Alex >=20 > Modified Files: > -------------- > mandoc: > man_html.c >=20 > Revision Data > ------------- > Index: man_html.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /home/cvs/mandoc/mandoc/man_html.c,v > retrieving revision 1.185 > retrieving revision 1.186 > diff -Lman_html.c -Lman_html.c -u -p -r1.185 -r1.186 > --- man_html.c > +++ man_html.c > @@ -433,10 +433,12 @@ list_continues(const struct roff_node *n > s2 =3D n2 =3D=3D NULL ? "" : n2->string; > c1 =3D strcmp(s1, "*") =3D=3D 0 ? '*' : > strcmp(s1, "\\-") =3D=3D 0 ? '-' : > - strcmp(s1, "\\(bu") =3D=3D 0 ? 'b' : ' '; > + strcmp(s1, "\\(bu") =3D=3D 0 ? 'b' : > + strcmp(s1, "\\[bu]") =3D=3D 0 ? 'b' : ' '; > c2 =3D strcmp(s2, "*") =3D=3D 0 ? '*' : > strcmp(s2, "\\-") =3D=3D 0 ? '-' : > - strcmp(s2, "\\(bu") =3D=3D 0 ? 'b' : ' '; > + strcmp(s2, "\\(bu") =3D=3D 0 ? 'b' : > + strcmp(s2, "\\[bu]") =3D=3D 0 ? 'b' : ' '; > return c1 !=3D c2 ? '\0' : c1 =3D=3D 'b' ? '*' : c1; > } > =20 > -- > To unsubscribe send an email to tech+unsubscribe@mandoc.bsd.lv >=20 --=20 --NXu9tmJSmnU4YlPY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE6jqH8KTroDDkXfJAnowa+77/2zIFAmUwKVQACgkQnowa+77/ 2zK6+A//Z/xZiTBqsQkk4XJX8lIFr4dvcV7tktd1+7zA+HFy3QuPAZrU464m8yZ8 d44pbZmxu7ew4FHmlAU/xffGL7oZZhkYBuFInA+Gv+Ag5EJ9Q6Wbj5dkBz5/MwLF jq87rHUVxhbFRnmvPuhHp9uMQGmP/Fb7OwTahPSB0BoVt38b0UYhOpQ2AK8xje5C 1jKxOZ24mMLTgyGrKtQZyd7VO/EWEkOLlBUfNd98rn7HdFEW+uwim5Wrd96R9cUM HmJKgD/kFcTt68BY0nmbNzAuJFozTtx6YtRxTeRsz8EoMbjVggngQTSk0/qdrg7y DDZasQyUL+OqT1EPRUlegnVghdunBL+BpEpqcQm+yqCJjS4uKkHHK2phFf0ipTaE eKUMuOu/C5Zq4Dhg8du9/k37rSrQCKa1mJcqhv1e0jH8t1bigIsHkzJprEuUkp3f wEmcEyyvCc/hg0PRfvJ3kcrsjb71hlsebNNZw3lxuTyeqyNQoygg3Z3dnOOa0eHT A5qFgq43Z430JTusZQ5suEYa3LJoE81QqmFi0ugA4ytfLLc4UEbXiYcC+ZvO9ASq J0VpbrEKcG5ndm61+G/I7O+T91dI/G10I2baxs+vKOmg6dVAi0mzkpc3RvI3JeJg 9d7gV55bWjKp7pblzHfKv5SAubUwWuKebGDSc1DJ67FIPDdPEeM= =yE+7 -----END PGP SIGNATURE----- --NXu9tmJSmnU4YlPY-- -- To unsubscribe send an email to tech+unsubscribe@mandoc.bsd.lv