[Bug 252198] Unescaped backslash renders to incorrect code example in xo_emit.3

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Dec 27 11:44:13 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252198

            Bug ID: 252198
           Summary: Unescaped backslash renders to incorrect code example
                    in xo_emit.3
           Product: Base System
           Version: Unspecified
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: rwatson at FreeBSD.org

The xo_emit.3 man page fail to escape a backslash properly, leading to an
incorrect code example when rendered.

               xo_emit(" {:lines/%7ju} {:words/%7ju} "
                       "{:characters/%7ju} {d:filename/%s}0,
                       linect, wordct, charct, file);

Escaping properly using "\en" fixes this problem. Patch submitted upstream to
libxo, but it's not clear that they are currently processing pull requests.

    https://github.com/Juniper/libxo/pull/76

So we might want to incorporate this change directly into contrib in the mean
time.

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


More information about the freebsd-bugs mailing list