[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #61348] [troff] assertion in env.cpp:distribute_space() has to come
From: |
Bjarni Ingi Gislason |
Subject: |
[bug #61348] [troff] assertion in env.cpp:distribute_space() has to come out |
Date: |
Mon, 18 Oct 2021 13:56:24 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 |
Follow-up Comment #1, bug #61348 (project groff):
This happens when the selected adjustment is NOT just to the left
margin.
I have changed the default adjustment to the left one in my code.
void environment::set_family(symbol fam)
@@ -646,7 +646,7 @@ environment::environment(symbol nm)
char_slant(0),
space_size(12),
sentence_space_size(12),
- adjust_mode(ADJUST_BOTH),
+ adjust_mode(ADJUST_LEFT),
fill(1),
interrupted(0),
prev_line_interrupted(0),
I have seen to many warnings about "cannot adjust line".
@@ -2122,7 +2116,7 @@ void environment::possibly_break_line(in
extra_space_width = target_text_length - bp->width;
else if (bp->width > 0 && target_text_length > 0
&& target_text_length > bp->width)
- output_warning(WARN_BREAK, "cannot adjust line");
+ output_warning(WARN_BREAK, "cannot adjust line at both margins");
break;
case ADJUST_CENTER:
saved_indent += (target_text_length - bp->width)/2;
Adjustment to both margins does not make sense with nroff,
and should therefore NOT be the default for nroff and man pages,
for example by using ".ds AD l" and ".ad l" in tmac files.
Especially for a long single word, like web addresses (URL).
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61348>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/