groff-commit
[Top][All Lists]
Advanced

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

[groff] 12/35: [troff]: Add source file line # to grohtml-info.


From: G. Branden Robinson
Subject: [groff] 12/35: [troff]: Add source file line # to grohtml-info.
Date: Fri, 15 Jul 2022 23:11:57 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit d2da424836f1423634f3b05263010f8f12a09608
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Jul 8 18:16:03 2022 -0500

    [troff]: Add source file line # to grohtml-info.
    
    * src/roff/troff/node.cpp (suppress_node::tprint): Add source file line
      number after its name when emitting "grohtml-info", to aid debugging.
---
 ChangeLog               | 6 ++++++
 src/roff/troff/node.cpp | 5 +++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 7b3fe621..dc93af7d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-07-08  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * src/roff/troff/node.cpp (suppress_node::tprint): Add source
+       file line number after its name when emitting "grohtml-info", to
+       aid debugging.
+
 2022-07-08  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * src/roff/troff/node.cpp (get_register, get_string): Reorder
diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp
index 071c95a0..e6436196 100644
--- a/src/roff/troff/node.cpp
+++ b/src/roff/troff/node.cpp
@@ -4191,13 +4191,14 @@ void suppress_node::tprint(troff_output_file *out)
        // `name` will contain a "%d" in which the image_no is placed.
        fprintf(stderr,
                "grohtml-info:page %d  %d  %d  %d  %d  %d  %s  %d  %d"
-               "  %s\n",
+               "  %s:%s\n",
                topdiv->get_page_number(),
                get_register("opminx"), get_register("opminy"),
                get_register("opmaxx"), get_register("opmaxy"),
                // page offset + line length
                get_register(".o") + get_register(".l"),
-               name, hresolution, vresolution, get_string(".F"));
+               name, hresolution, vresolution, get_string(".F"),
+               get_string(".c"));
        fflush(stderr);
       }
     }



reply via email to

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