Red Hat Bugzilla – Bug 756239
leading space missing when copying text from Zanata source column in Firefox 3
Last modified: 2012-03-06 19:07:05 EST
Description of problem:
When copying original text to the target, space in front of the string isnt included in the translation space.
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):
Steps to Reproduce:
1. copy a word with a space infront
2. paste it in the target
the space in front isnt copied.
space should be included.
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.
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).
Reviewed code and verified in Firefox 3.6.18