[Bug 274247] mandoc produce noise on empty input

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 03 Oct 2023 15:47:36 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274247

            Bug ID: 274247
           Summary: mandoc produce noise on empty input
           Product: Base System
           Version: 15.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: wosch@FreeBSD.org

For empty input, mandoc produce 3 lines output with brackets:

$ mandoc < /dev/null | wc -l
       3


$ mandoc < /dev/null        
()                                                                          ()

                                                                            ()


this looks strange.

GNU groff works fine: 
$ nroff -mandoc  < /dev/null  | wc -l
       0

-- 
You are receiving this mail because:
You are the assignee for the bug.