[okular] [Bug 445851] New: Don't copy newlines within paragraph

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Sun Nov 21 05:03:56 GMT 2021


https://bugs.kde.org/show_bug.cgi?id=445851

            Bug ID: 445851
           Summary: Don't copy newlines within paragraph
           Product: okular
           Version: 21.08.3
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: wishlist
          Priority: NOR
         Component: general
          Assignee: okular-devel at kde.org
          Reporter: codingkoopa at gmail.com
  Target Milestone: ---

SUMMARY
When a selection of text spanning multiple lines is copied, the newlines are
included. This has the effect of including newlines in the middle of sentences,
which is undesirable when copying text from the PDF to a new document.

STEPS TO REPRODUCE
1. Obtain a PDF containing a paragraph of text, such as this one:
https://unec.edu.az/application/uploads/2014/12/pdf-sample.pdf.
2. Copy an entire paragraph of text, or a selection within the paragraph
spanning multiple times.
3. Paste the selection into a new document or text editor.

OBSERVED RESULT
Newlines used to break the content are preserved:

Adobe® Portable Document Format (PDF) is a universal file format that preserves
all
of the fonts, formatting, colours and graphics of any source document,
regardless of
the application and platform used to create it.

EXPECTED RESULT
Newlines used to break the content are not preserved:

Adobe® Portable Document Format (PDF) is a universal file format that preserves
all of the fonts, formatting, colours and graphics of any source document,
regardless of the application and platform used to create it.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
The pdf.js PDF viewer elides the newlines as I want, but butchers the spacing
in seemingly unrelated ways:

Adobe® Portable Document Format (PDF) is a universal file format that preserves
allof  the  fonts,  formatting,  colours  and  graphics  of  any  source 
document,  regardless  ofthe application and platform used to create it.

Bug #359242 also discusses unwanted newlines in the clipboard, but this bug
discusses the exclusion of newlines that *are* within the text selection.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list