groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 08/38: tmac/mdoc/doc-common: Trivially refactor.


From: G. Branden Robinson
Subject: [groff] 08/38: tmac/mdoc/doc-common: Trivially refactor.
Date: Sun, 24 Mar 2024 16:59:56 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit def0f3deb903dbbd9b571aa283427dc562b22077
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Mon Mar 18 12:25:37 2024 -0500

    tmac/mdoc/doc-common: Trivially refactor.
    
    * tmac/mdoc/doc-common: Trivially refactor.  Rename
      `doc-need-titles-reset` register to `doc-end-previous-document`,
      reflecting its newly narrowed purpose.
---
 ChangeLog            |  6 ++++++
 tmac/mdoc/doc-common | 12 ++++++------
 2 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index d0e1ac6c5..ca7963f2b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-03-18  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * tmac/mdoc/doc-common: Trivially refactor.  Rename
+       `doc-need-titles-reset` register to `doc-end-previous-document`,
+       reflecting its newly narrowed purpose.
+
 2024-03-18  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * tmac/mdoc/doc-common (doc-reset-titles): New macro pulls
diff --git a/tmac/mdoc/doc-common b/tmac/mdoc/doc-common
index 878a0282b..ffa37c9de 100644
--- a/tmac/mdoc/doc-common
+++ b/tmac/mdoc/doc-common
@@ -315,7 +315,7 @@
 .  \"
 .  \" If also continuously rendering, cause a page transition to a new
 .  \" mdoc(7) document.
-.  if \n[doc-need-titles-reset] \{\
+.  if \n[doc-end-previous-document] \{\
 .    if \n[cR] .doc-end-macro
 .
 .    \" Clear the page header trap so it is not sprung with stale
@@ -1001,7 +1001,7 @@
 .  \}
 .
 .  doc-header
-.  nr doc-need-titles-reset 1
+.  nr doc-end-previous-document 1
 ..
 .ec
 .
@@ -1156,7 +1156,7 @@
 .\" NS   finish output
 .\" NS
 .\" NS modifies:
-.\" NS   doc-need-titles-reset
+.\" NS   doc-end-previous-document
 .
 .eo
 .de doc-end-macro
@@ -1317,13 +1317,13 @@
 .nr doc-in-authors-section 0
 .
 .
-.\" NS doc-need-titles-reset global register (bool)
+.\" NS doc-end-previous-document global register (bool)
 .\" NS   whether the strings that set header and footer text need to be
 .\" NS   reconfigured
 .\" NS
-.\" NS This happens when batch-rendering and starting a new page.
+.\" NS This happens when batch-rendering and starting a new document.
 .
-.nr doc-need-titles-reset 0
+.nr doc-end-previous-document 0
 .
 .
 .\" NS doc-first-parameter macro



reply via email to

[Prev in Thread] Current Thread [Next in Thread]