PTPi pushed a commit to branch master
in repository groff.

commit 1f26192f2b82a470392d61a5e2e4396a6017faa0
Author: Peter Schaffter <[email protected]>
AuthorDate: Sat Apr 25 12:54:56 2026 -0400

    [mom]: Fixes footnote smartquotes.
    
    Makes footnote smartquotes independent of body text smartquotes.
    
    Additionally, removes trailing comma from Author field in PDF
    Properties pop-ups.
---
 contrib/mom/om.tmac | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/contrib/mom/om.tmac b/contrib/mom/om.tmac
index 32a988bce..2c5a45a5c 100644
--- a/contrib/mom/om.tmac
+++ b/contrib/mom/om.tmac
@@ -4927,7 +4927,7 @@ y\R'#DESCENDER \\n[.cdp]'
 "\\*[$\\*[COVER_]AUTHOR_\\n[#\\*[COVER_]AUTHOR_NUM]], \"
 .    \}
 .    ds $AUTHOR \\*[$AUTHOR_1]
-.    substring $AUTHORS 0 -2
+.    substring $AUTHORS 0 -3
 .    ds PDF_AUTHORS \\*[$AUTHORS]
 .    if '\\*[.T]'ps' .pdfmomclean PDF_AUTHORS
 .    nop \!x X ps:exec [/Author (\\*[PDF_AUTHORS]) /DOCINFO pdfmark
@@ -13830,6 +13830,7 @@ E\\R'#CAP_HEIGHT \\n[.cht]'
 \#   for each footnote the user wants indented.
 \#
 .MAC FOOTNOTE END
+.    if \\n[#SQ_ON] .if \\n[#OPEN_CLOSE]=1 .nr #OPEN_CLOSE 0
 .    ie '\\$1'' \{\
 .       if \\n[#UNDERLINE_ON] \{\
 .          UNDERLINE OFF
@@ -14282,6 +14283,7 @@ E\\R'#CAP_HEIGHT \\n[.cht]'
 .\" Turn off indent possibly set by FOOTNOTE INDENT
 .          in 0
 .          ev
+.          if \\n[#SQ_ON] .if \\n[#OPEN_CLOSE]=0 .nr #OPEN_CLOSE 1
 .          if \\n[#UNDERLINE_WAS_ON_FN] \{\
 .             UNDERLINE
 .             rr #UNDERLINE_WAS_ON_FN

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to