On Wed, Oct 18, 2023 at 06:20:35PM +0200, Ingo Schwarze wrote: > Hi Alejandro, > > Ingo Schwarze wrote on Wed, Oct 18, 2023 at 02:04:46AM +0200: > > > 3. teach list_continues() that \[bu] is the same as \(bu. > > This part is now fixed, too, see the commit below. > > 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. > > Yours, > Ingo > > > Log Message: > ----------- > Support the GNU-specific syntax ".IP \\[bu]" for bullet lists in man(7) > pages that Alejandro Colomar recommends in the "Lists" subsection of > https://man7.org/linux/man-pages/man7/man-pages.7.html#STYLE_GUIDE . > > For example, this will improve HTML formatting of the first list in > the subsection "Feature test macros understood by glibc" on the page > https://manpages.debian.org/bookworm/manpages/ftm.7.en.html . > > Issue reported by Alejandro Colomar . LGTM. Thanks, Alex > > Modified Files: > -------------- > mandoc: > man_html.c > > Revision Data > ------------- > Index: man_html.c > =================================================================== > 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 = n2 == NULL ? "" : n2->string; > c1 = strcmp(s1, "*") == 0 ? '*' : > strcmp(s1, "\\-") == 0 ? '-' : > - strcmp(s1, "\\(bu") == 0 ? 'b' : ' '; > + strcmp(s1, "\\(bu") == 0 ? 'b' : > + strcmp(s1, "\\[bu]") == 0 ? 'b' : ' '; > c2 = strcmp(s2, "*") == 0 ? '*' : > strcmp(s2, "\\-") == 0 ? '-' : > - strcmp(s2, "\\(bu") == 0 ? 'b' : ' '; > + strcmp(s2, "\\(bu") == 0 ? 'b' : > + strcmp(s2, "\\[bu]") == 0 ? 'b' : ' '; > return c1 != c2 ? '\0' : c1 == 'b' ? '*' : c1; > } > > -- > To unsubscribe send an email to tech+unsubscribe@mandoc.bsd.lv > --