https://bz.apache.org/ooo/show_bug.cgi?id=128168

--- Comment #5 from [email protected] ---
(In reply to oooforum (fr) from comment #4)
> Well, this message occurs certainly because you have not only "ab" in
> Clipboard.
> Select "ab" in a cell and you will have "ab" and a carriage return. 
> So more than 2 chars.

I see that "Issue 128168 - Pasting Clipboard content into Text field" has now
gained status "RESOLVED NOT_AN_OOO_ISSUE"
Excuse my stubbornness - but am I missing something? If that's the case, would
someone care to enlighten me on Clipboard and text/string handling philosophy
in OpenOffice.

Please read the following and then - if you find it advisable - reply. I shall
truly appreciate it.

1. Issue i.e. MISSING CHARACTER in OVERWRITE mode does not occur when:
   - lenght of text is not equal to MaxTexLen (text is shorter than limit)
   - block is marked (blue background) - one character or more

2. Before I decided to report this "would-be bug" I checked pasting 
   Clipboard content set in:
   - Notepad++ 
     (Menu > View > Show End of Line). Clearly I copied to Clipboard only 
     characters, not characters and CR/LF. NotePad++ allows to copy line 
     with CR/LF too.

   - OpenOffice
     I tested many cases:
      (i) copy cell,
      (ii) copy cell content (as you described in your comment),
      (iii) copy part of a cell content

Your remark << Select "ab" in a cell and you will have "ab" and a carriage
return>>  is perfectly correct yet if generalized has strange onsequencies. If
the cell content is, say "xxabyy", and I mark part of it - for example "ab" -
and copy it, then OpenOffice copies "ab" and adds carriage return. (see (iii)
above - after Paste operation one character vanished).
If I paste "ab" into the OpenOffice Writer actually new line appears.
If I paste same "ab" into Notepad++, new line does not appear (spooky, isn't
it? Or at least proves inconsistency)
Part of cell content should be string as it is not string with carriage return
(unless explicitly stated or predefined - like in Basic: Chr(13) & Chr(10) or
"MultiLine" property in UNO), no matter what I intend to do with: copy to
Clipboard, copy to another cell and so one.


3. Even if a carriage return is added (as in case of barcode scanner adding 
   CR/LF/Return or Enter key to barcode for efficiency), why one character      
   after paste operation is MISSING? (see point 1.). One would argue that 
   when lenght of text reaches MaxTextLen and pasting occurs:
   - in INSERT mode text remains unchanged
   - in OVERWRITE mode - text shall be shortened - really? (again: what 
   about missing character and cases mentionned in point 1. above)

Hence my humble request at the beginning.

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

Reply via email to