Re: "Can't break line warning"
* 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
Re: "Can't break line warning"
> 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. \s+5World Reknowned Corporation\s0 .br \u\l'6i'\" Horizontal line @ 6 inches .tl '''\u\s-24927 33\*[SUP]rd\*[SUPX] Street, Megalopolis, KS 67999\s0' .sp 3 You then need to put a ".br" after the line, to terminate it, otherwise it's retained as a partially filled line until the next break (from the ".sp 3"), and therefore is only output after the 3-part title. \s+5World Reknowned Corporation\s0 .br \u\l'6i'\" Horizontal line @ 6 inches .br .tl '''\u\s-24927 33\*[SUP]rd\*[SUPX] Street, Megalopolis, KS 67999\s0' .sp 3 Alternatively, do the right-adjusting with ".rj" instead of ".tl": \s+5World Reknowned Corporation\s0 .br \u\l'6i'\" Horizontal line @ 6 inches .rj 1 \u\s-24927 33\*[SUP]rd\*[SUPX] Street, Megalopolis, KS 67999\s0 .sp 3