In a document I have, filename extensions are referenced using syntax such as <filename>.dat</filename>. In the generated manpage, this appears as:
on it's own line.
While this appears to work on Linux, on Solaris, this results in the man page being truncated. This is because the initial dot is being treated as introducing a macro despite the quoting. So this is an error in the nroff sources and not the Solaris implementation of nroff.
There may well be better ways of fixing this such as not putting in the newline but the attached patch gets around the problem by using \N'46' to produce a dot for the first character in a sequence. This won't always be the first character in a line but much of the time, it will be.
Log in to post a comment.