Follow-up Comment #3, bug #57611 (project groff):
tmac/doc-*: Add the input file name to diagnostics
The files "doc-common-u" and "doc-syms-u" contain lines
to be sent to standard error with "mdoc warning",
but without the name of the input file.
Add the file name to the diagnostic.
The whole patch is in the attachment.
--- a/tmac/doc-common-u
+++ b/tmac/doc-common-u
-. tm mdoc warning: .Os: Unknown BSD version '\$2' (#\n[.c])
+. tm \n[.F]: mdoc warning: .Os: Unknown BSD version '\$2' (#\n[.c])
-. tm mdoc warning: .Os: Unknown FreeBSD version '\$2' (#\n[.c])
+. tm \n[.F]: mdoc warning: .Os: Unknown FreeBSD version '\$2'
(#\n[.c])
-. tm mdoc warning: .Os: Unknown DragonFly version '\$2' (#\n[.c])
+. tm \n[.F]: mdoc warning: .Os: Unknown DragonFly version '\$2'
(#\n[.c])
-. tm mdoc warning: .Os: Unknown NetBSD version '\$2' (#\n[.c])
+. tm \n[.F]: mdoc warning: .Os: Unknown NetBSD version '\$2'
(#\n[.c])
-. tm mdoc warning: .Os: Unknown OpenBSD version '\$2' (#\n[.c])
+. tm \n[.F]: mdoc warning: .Os: Unknown OpenBSD version '\$2'
(#\n[.c])
-. tm mdoc warning: .Os: Unknown Darwin version '\$2' (#\n[.c])
+. tm \n[.F]: mdoc warning: .Os: Unknown Darwin version '\$2'
(#\n[.c])
-. tm mdoc warning: A .Bl directive has no matching .El (#\n[.c])
+. tm \n[.F]: mdoc warning: A .Bl directive has no matching .El (#\n[.c])
-. tm mdoc warning: A .Bd directive has no matching .Ed (#\n[.c])
+. tm \n[.F]: mdoc warning: A .Bd directive has no matching .Ed (#\n[.c])
-. tm mdoc warning: A .Bf directive has no matching .Ef (#\n[.c])
+. tm \n[.F]: mdoc warning: A .Bf directive has no matching .Ef (#\n[.c])
--- a/tmac/doc-syms-u
+++ b/tmac/doc-syms-u
-. tmc mdoc warning: .At: Unknown AT&T UNIX version
+. tmc \n[.F]: mdoc warning: .At: Unknown AT&T UNIX version
-. tmc mdoc warning: .Dx: Unknown DragonFly version
+. tmc \n[.F]: mdoc warning: .Dx: Unknown DragonFly version
-. tmc mdoc warning: .Fx: Unknown FreeBSD version
+. tmc \n[.F]: mdoc warning: .Fx: Unknown FreeBSD version
-. tmc mdoc warning: .Nx: Unknown NetBSD version
+. tmc \n[.F]: mdoc warning: .Nx: Unknown NetBSD version
-. tmc "mdoc warning: .St: Unknown standard abbreviation
+. tmc "\n[.F]: mdoc warning: .St: Unknown standard abbreviation
-. tmc "mdoc warning: .Lb: no description for library
+. tmc "\n[.F]: mdoc warning: .Lb: no description for library
(file #48371)
_______________________________________________________
Additional Item Attachment:
File name: groff.bug Size:6 KB
<https://savannah.gnu.org/file/groff.bug?file_id=48371>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57611>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/