[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "Can't break line warning"
From: |
Nate Bargmann |
Subject: |
Re: "Can't break line warning" |
Date: |
Sun, 15 Aug 2021 11:30:34 -0500 |
* On 2021 15 Aug 08:59 -0500, Tadziu Hoffmann wrote:
>
> > The horizontal line output by the \l escape is 6 inches, the same as the
> > declared line length.
> > troff: letterhead-demo.mm:31: warning [p 1, 0.5i]: can't break line
>
> You have a tab after the "\l'6i'", which counts as part of the
> line. Remove it, and the error disappears.
That was such a fundamental error on my part that it's embarrassing!
Reminder to self--in roff, spaces on text input lines are signficant;
this isn't C...
Taking your advice I added the .br request following the line. In
addition I moved the comment to a line of its own preceding the
horizontal rule request to look like this now:
.\" Letterhead
\s+5World Reknowned Corporation\s0
.br
.\" Horizontal line @ 6 inches
\u\l'6i'
.br
.tl '''\u\s-24927 33\*[SUP]rd\*[SUPX] Street, Megalopolis, KS 67999\s0'
.sp 3
And the warning has been quelled and the letterhead is as desired.
Thanks, Tadziu!
- Nate
--
"The optimist proclaims that we live in the best of all
possible worlds. The pessimist fears this is true."
Web: https://www.n0nb.us
Projects: https://github.com/N0NB
GPG fingerprint: 82D6 4F6B 0E67 CD41 F689 BBA6 FB2C 5130 D55A 8819
signature.asc
Description: PGP signature