Bug 756239

Summary: leading space missing when copying text from Zanata source column in Firefox 3
Product: [Retired] Zanata Reporter: Mie Yamamoto <myamamot>
Component: UsabilityAssignee: Sean Flanigan <sflaniga>
Status: CLOSED CURRENTRELEASE QA Contact: David Mason <damason>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: damason, sflaniga, zanata-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 1.5.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-07 00:07:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 786670    

Description Mie Yamamoto 2011-11-23 01:30:30 UTC
Description of problem:
When copying original text to the target, space in front of the string isnt included in the translation space.

e.g.
Copy this string " <literal>Red Had Enterprise Virtulization Manager</literal> " with the space in front and at the end, and paste it in the translated string.
the space in front will disappear. 


Version-Release number of selected component (if applicable):


How reproducible:
everytime

Steps to Reproduce:
1. copy a word with a space infront
2. paste it in the target 
3. 
  
Actual results:
the space in front isnt copied. 

Expected results:
space should be included.

Additional info:

Comment 2 Sean Flanigan 2012-02-14 03:37:54 UTC
This doesn't happen in Chrome 17, but it does happen in Firefox 3.6.26.  It seems to be a browser limitation, because Firefox often fails to copy leading spaces in a variety of web pages, not just Zanata.

This discussion seems to be related: https://groups.google.com/d/topic/codemirror/eIOIOlVhv4s/discussion

I'll see if upgrading codemirror helps.

Comment 3 Sean Flanigan 2012-02-15 05:23:56 UTC
This is caused by a Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=116083

Upgrading CodeMirror didn't help by itself, but I've changed the text cells to use "pre" elements as a workaround.

Fixed in https://github.com/zanata/zanata/commit/27996321de64ed9b6e48dc6781df25183131ddc2 (master).

Comment 4 David Mason 2012-02-20 00:59:29 UTC
Reviewed code and verified in Firefox 3.6.18