Using either the txt or the odt backend, selected text (either using the selection or the text selection tool) sometimes ignores the final character on a line. I have identified two cases when this happens: 1. If the line contains no white space and is forced to wrap at a non-whitespace character, the final character on the line before the wrap will not be selected. 2. If the file does not contain a final line terminator, the last character on the last line is not selected. Reproducible: Always Steps to Reproduce: 1. Make a simple text or ODT file, for example containing the words 'Hello world' but no line terminator. 2. Load the file into okular 3. Select the final characters of the displayed line. Actual Results: Characters selected do not include the final character on the line. Expected Results: Characters selected should include the final character on the line.
for completion, could you upload such a file?
Created attachment 98952 [details] A trivial test file where the issue can be reproduced. I notice that the problem does not happen with PDF files.
Created attachment 98954 [details] Problem doesn't happen with PDF.
file was provided
Thanks for the report Jonathan. I've just tested this on the latest Okular with a single line text file and cannot reproduce this issue. Can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved. I'm setting status to "needsinfo" pending your response, please change back to "reported" when you respond, thanks.
Still happens to me, at least with Okular version 1.11.3
Does happen here. Input .txt document: abcdefabcdef[...]abcdefabcdef Text selection result: abcdefabcdefabcdefabcd fabcdefabcdef[...]abcdefabc → The e is missing. Could not reproduce with PDF. Maybe related to the text entity reordering problem, see See Also.