[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Groff-commit] groff ChangeLog src/roff/troff/env.cpp
From: |
Werner LEMBERG |
Subject: |
[Groff-commit] groff ChangeLog src/roff/troff/env.cpp |
Date: |
Wed, 06 Sep 2006 15:27:02 +0000 |
CVSROOT: /cvsroot/groff
Module name: groff
Changes by: Werner LEMBERG <wl> 06/09/06 15:27:01
Modified files:
. : ChangeLog
src/roff/troff : env.cpp
Log message:
* src/roff/troff/env.cpp (environment::do_break): Insert zero-width
space only if there is no previous space. This fixes a bug which
caused unwanted filling of the last line in a paragraph. Thanks to
Gunnar Ritter for an analysis.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/groff/ChangeLog?cvsroot=groff&r1=1.990&r2=1.991
http://cvs.savannah.gnu.org/viewcvs/groff/src/roff/troff/env.cpp?cvsroot=groff&r1=1.19&r2=1.20
Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/groff/groff/ChangeLog,v
retrieving revision 1.990
retrieving revision 1.991
diff -u -b -r1.990 -r1.991
--- ChangeLog 3 Sep 2006 12:52:20 -0000 1.990
+++ ChangeLog 6 Sep 2006 15:27:01 -0000 1.991
@@ -1,3 +1,10 @@
+2006-09-06 Werner LEMBERG <address@hidden>
+
+ * src/roff/troff/env.cpp (environment::do_break): Insert zero-width
+ space only if there is no previous space. This fixes a bug which
+ caused unwanted filling of the last line in a paragraph. Thanks to
+ Gunnar Ritter for an analysis.
+
2006-09-03 Werner LEMBERG <address@hidden>
* src/roff/groff/groff.cpp (main): Pass -U flag to pic also.
Index: src/roff/troff/env.cpp
===================================================================
RCS file: /cvsroot/groff/groff/src/roff/troff/env.cpp,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- src/roff/troff/env.cpp 2 Sep 2006 21:39:34 -0000 1.19
+++ src/roff/troff/env.cpp 6 Sep 2006 15:27:01 -0000 1.20
@@ -2336,8 +2336,10 @@
wrap_up_tab();
if (line) {
// this is so that hyphenation works
+ if (line->nspaces() == 0) {
line = new space_node(H0, get_fill_color(), line);
space_total++;
+ }
possibly_break_line(0, do_spread);
}
while (line != 0 && line->discardable()) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Groff-commit] groff ChangeLog src/roff/troff/env.cpp,
Werner LEMBERG <=