gbranden pushed a commit to branch master in repository groff. commit c609cef4315a0a521680ccf97784a8b4e01c983d Author: G. Branden Robinson <g.branden.robin...@gmail.com> AuthorDate: Sun Mar 24 02:34:23 2024 -0500
[mdoc]: Refactor `Dl` macro to use "C" family. ...on typesetters. * tmac/mdoc/doc-ditroff (Dl): Refactor. Instead of using the "literal" (`Li` macro) font, save the family, switch to Courier, emit the arguments, then restore the family. --- ChangeLog | 6 ++++++ tmac/mdoc/doc-ditroff | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f351760b1..19c0d1d6d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-03-24 G. Branden Robinson <g.branden.robin...@gmail.com> + + * tmac/mdoc/doc-ditroff (Dl): Refactor. Instead of using the + "literal" (`Li` macro) font, save the family, switch to Courier, + emit the arguments, then restore the family. + 2024-03-24 G. Branden Robinson <g.branden.robin...@gmail.com> [mdoc]: Refactor. diff --git a/tmac/mdoc/doc-ditroff b/tmac/mdoc/doc-ditroff index c4f12f36f..83b3629bd 100644 --- a/tmac/mdoc/doc-ditroff +++ b/tmac/mdoc/doc-ditroff @@ -199,6 +199,9 @@ .\" NS doc-curr-font .\" NS doc-macro-name .\" NS +.\" NS local variables: +.\" NS doc-saved-family-Dl +.\" NS .\" NS width register 'Dl' set in doc-common . .eo @@ -216,8 +219,10 @@ . doc-parse-args \$@ . nr doc-arg-ptr 1 . nr doc-curr-font \n[.f] -. nop \*[doc-Li-font]\c +. ds doc-saved-family-Dl \n[.fam] +. fam C . doc-print-recursive +. fam \*[doc-saved-family-Dl] . \} . el \ . doc-report-usage .Dl argument ... _______________________________________________ Groff-commit mailing list Groff-commit@gnu.org https://lists.gnu.org/mailman/listinfo/groff-commit