Created attachment 140016 [details] okular-whitespace-bug SUMMARY When I use Text Selection, it doesn't select spaces in the beginning and in the end of lines. STEPS TO REPRODUCE 1. Create or open pdf file with spaces in the beginning and end of lines 2. Select all text 3. See no spaces OBSERVED RESULT No spaces EXPECTED RESULT Selected spaces SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: KDE Neon User Edition 5.22 (available in About System) KDE Plasma Version: 5.22.3 KDE Frameworks Version: 5.83.0 Qt Version: 5.15.3 ADDITIONAL INFORMATION
Seems like it's a normal behavior for pdf, when I create a pdf with text, I split text after a whitespace and put it into a pdf file. After saving that space is replaced with paragraph symbol. Okay, I think It is not a okular bug. Thanks.
This is the text entity reordering problem. Okular just takes an unordered set of visible characters with position, and then arranges them to a string as it feels appropriate. Space characters are indeed lost in this process.