[BACK]Return to basic.in CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc / regress / roff / ce

File: [cvsweb.bsd.lv] / mandoc / regress / roff / ce / basic.in (download)

Revision 1.2, Wed Sep 2 16:40:37 2020 UTC (3 years, 9 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_6, HEAD
Changes since 1.1: +12 -2 lines

Do not indent by SIZE_MAX/2 when .ce occurs inside explicit no-fill mode.
While here, drop two unused arguments from the function term_field();
the related work was already done by term_fill() before this commit.

I found the bug in an afl run
that was performed by Jan Schreiber <jes at posteo dot de>.

.\" $OpenBSD: basic.in,v 1.2 2020/09/02 16:36:48 schwarze Exp $
.TH CE-BASIC 1 "September 2, 2020"
.SH NAME
ce-basic \- basic usage of the centering request
.SH DESCRIPTION
initial
text
.ce 2
Text centered with the .ce request
is not filled.
normal
text
.rj 2
Text adjusted to the right margin
works in just the same way and isn't filled either.
.PP
.nf
Now entering
explicit no-fill mode.
.ce 2
Text is still
not filled.
.PP
.fi
final
text
in fill mode