Bug#799859: Gedit mangles lines when printing text files with long lines

Nicholas Johnson nicholas.vc.johnson at gmail.com
Wed Sep 23 11:10:22 UTC 2015


Package: gedit
Version: 3.14.0-3

Hello,

Recently I upgraded gedit, and subsequently noticed that gedit started
mangling lines when I print.  This behavior only seems to occur when I
am printing text files with long lines.  It occurs whether or not
text-wrapping is turned on under print settings.  Although sometimes the
mangling resembles simple truncation, at other times, it looks like
random words within the line are printed.  This behavior is consistently
exhibited when when printing to either an actual printer, or printing to
a PDF.  As you would expect, the behavior is deterministic, with the
same printed output for each given text file.

Interestingly, plain text documents render appropriately when using
"Print Preview," just not when actually trying to print to a file or
printer.  Also, the garbled print output typically matches the
print-preview layout in terms of number of pages.

For example: If I attempt to print the following from gedit (from
wikipedia), where each paragraph is a single line:
-------------------------------------------------------
Debian is a Unix-like computer operating system and a Linux distribution
that is composed entirely of free and open-source software, most of
which is under the GNU General Public License, and packaged by a group
of individuals known as the Debian Project. Three main branches are
offered: Stable, Testing and Unstable.

The Debian Stable distribution is one of the most popular for personal
computers and network servers, and has been used as a base for several
other Linux distributions. The Debian Testing and Unstable branches are
rolling release and eventually become the stable distribution after
development and testing (Testing becomes Stable, and Unstable becomes
Testing).

Debian was first announced in 1993 by Ian Murdock, and the first stable
release was made in 1996. The development is carried out over the
Internet by a team of volunteers guided by a project leader and three
foundational documents: the Debian Social Contract, the Debian
Constitution, and the Debian Free Software Guidelines. New distributions
are updated continually, and the next candidate is released after a
time-based freeze.

As one of the earliest Linux distributions, it was envisioned that
Debian was to be developed openly in the spirit of GNU. This vision drew
the attention and support of the Free Software Foundation, which
sponsored the project for one year. Upon the ending of the sponsorship,
the Debian project formed the non-profit organisation Software in the
Public Interest.
------------------------------------------------------------
... I end up with something resembling the following printed to a PDF
(or a real printer):
------------------------------------------------------------
that
under
nown
and
Unstable.
The Debian Stable distribution is one of the most popular for personal
ther
g
and
testing (Testing becomes Stable, and Unstable becomes Testing).
et by
a team of volunteers guided by a project leader and three foundational
Debian
the
next candidate is released after a time-based freeze.
n was
ion
for
the
non-profit organisation Software in the Public Interest.
------------------------------------------------------------------
Printing works normally from other applications, such as evince or
libreoffice.

Other information: 
Linux xxxxxx 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u4
(2015-09-19) x86_64 GNU/Linux

cups is version 1.7.5-11+deb
gnome is 1:3.14+3

Gedit is one of the programs I use most on a daily basis.  It's the best
I've found to cleanly print text files with a simple user interface.
Anyways, please let me know if I can provide any other information.

Thanks!
- Nick Johnson

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20150923/e99d466e/attachment.sig>


More information about the pkg-gnome-maintainers mailing list