Bugfixes to manpage layout - no need to .br when the demo is pulled in a .nf anyway; remember to escape slashes

This commit is contained in:
Paul LeoNerd Evans 2011-04-03 00:27:02 +01:00
parent ad7d31ead8
commit 574754d5f1
2 changed files with 4 additions and 4 deletions

View File

@ -76,11 +76,11 @@ To convert the \fIsym\fP to a symbolic name, see \fBtermkey_get_keyname\fP(3) fu
The following example program prints details of every keypress until the user presses "Ctrl-C". It demonstrates how to use the termkey instance in a typical \fBpoll\fP()-driven asynchronous program, which may include mixed IO with other file handles. The following example program prints details of every keypress until the user presses "Ctrl-C". It demonstrates how to use the termkey instance in a typical \fBpoll\fP()-driven asynchronous program, which may include mixed IO with other file handles.
.PP .PP
.in +4n .in +4n
.nf
EOF EOF
sed i.br demo-async.c sed "s/\\\\/\\\\\\\\/g" demo-async.c
cat <<EOF cat <<EOF
.in .in
.nf
.fi .fi
.SH "SEE ALSO" .SH "SEE ALSO"
.BR termkey_new (3), .BR termkey_new (3),

View File

@ -29,11 +29,11 @@ No key events are ready and the terminal has been closed, so no more will arrive
The following example program prints details of every keypress until the user presses "Ctrl-C". The following example program prints details of every keypress until the user presses "Ctrl-C".
.PP .PP
.in +4n .in +4n
.nf
EOF EOF
sed i.br demo.c sed "s/\\\\/\\\\\\\\/g" demo.c
cat <<EOF cat <<EOF
.in .in
.nf
.fi .fi
.SH "SEE ALSO" .SH "SEE ALSO"
.BR termkey_new (3), .BR termkey_new (3),