[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#791443: okular: indentation not preserved when copy pasting text



Package: okular
Version: 4:4.14.2-2
Severity: normal

Dear Maintainer,

Upon copying text from a pdf file to an editor (ex:- gvim), the indentation of
the original text is lost.

Consider the attached pdf file which contains the following text

def print_lyrics():
    print "I'm a lumberjack, and I'm okay."
    print "I sleep all night and I work all day."

If I select this using a mouse, choose "Copy to Clipboard" option and paste it
in an editor it is pasted as

def print_lyrics():
print "I'm a lumberjack, and I'm okay."
print "I sleep all night and I work all day."

That is the indentation in the original text is lost. I tried various editors
such as gvim, vim, emacs, pico and the behavior is the same. So I am assuming
it to be a bug in okular. Could you please take a look?

thanks
--
Kamaraju S. Kusumanchi
http://raju.shoutwiki.com/wiki/Blog



-- System Information:
Debian Release: 8.1
  APT prefers stable
  APT policy: (500, 'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages okular depends on:
ii  kde-runtime         4:4.13.3-1
ii  libc6               2.19-18
ii  libfreetype6        2.5.2-1
ii  libjpeg62-turbo     1:1.3.1-11
ii  libkactivities6     4:4.13.1-1
ii  libkdecore5         4:4.14.2-5
ii  libkdeui5           4:4.14.2-5
ii  libkexiv2-11        4:4.13.1-1
ii  libkio5             4:4.14.2-5
ii  libkparts4          4:4.14.2-5
ii  libkprintutils4     4:4.14.2-5
ii  libkpty4            4:4.14.2-5
ii  libokularcore5      4:4.14.2-2
ii  libphonon4          4:4.8.0-4
ii  libpoppler-qt4-4    0.26.5-2
ii  libqca2             2.0.3-6
ii  libqimageblitz4     1:0.0.6-4
ii  libqmobipocket1     4:4.12.2-2
ii  libqt4-dbus         4:4.8.6+dfsg-2
ii  libqt4-declarative  4:4.8.6+dfsg-2
ii  libqt4-svg          4:4.8.6+dfsg-2
ii  libqt4-xml          4:4.8.6+dfsg-2
ii  libqtcore4          4:4.8.6+dfsg-2
ii  libqtgui4           4:4.8.6+dfsg-2
ii  libsolid4           4:4.14.2-5
ii  libspectre1         0.2.7-2
ii  libstdc++6          4.9.2-10
ii  phonon              4:4.7.1-1
ii  zlib1g              1:1.2.8.dfsg-1

okular recommends no packages.

Versions of packages okular suggests:
ii  ghostscript            9.06~dfsg-2
ii  jovie                  4:4.13.1-1
pn  okular-extra-backends  <none>
ii  poppler-data           0.4.6-5
ii  texlive-binaries       2014.20140926.35254-6
ii  unrar                  1:5.0.10-1

-- no debconf information

Attachment: indentation.pdf
Description: Adobe PDF document


Reply to: