Bug 756239 - leading space missing when copying text from Zanata source column in Firefox 3
Summary: leading space missing when copying text from Zanata source column in Firefox 3
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Zanata
Classification: Retired
Component: Usability
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Sean Flanigan
QA Contact: David Mason
URL:
Whiteboard:
Depends On:
Blocks: zanata-1.5.0
TreeView+ depends on / blocked
 
Reported: 2011-11-23 01:30 UTC by Mie Yamamoto
Modified: 2012-03-07 00:07 UTC (History)
3 users (show)

Fixed In Version: 1.5.0
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-03-07 00:07:05 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Mozilla Foundation 116083 0 None None None Never

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


Note You need to log in before you can comment on or make changes to this bug.