Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

When copying text it doesn't preserve the white spacing, how can I change the setting to include white spacing instead of the default of <1>?

  • 5 个回答
  • 1 人有此问题
  • 2 次查看
  • 最后回复者为 Perry

more options

When copying text, it defaults any spacing between characters to 1 space. I need to preserve the spacing due to programming and parsing those spaces.

When copying text, it defaults any spacing between characters to 1 space. I need to preserve the spacing due to programming and parsing those spaces.

被采纳的解决方案

Hello Perry,

Maybe you could ask "erosman", the author of the
"Copy PlainText 1.10" extension that you have installed ?

https://addons.mozilla.org/en-US/firefox/addon/copy-plaintext/

定位到答案原位置 👍 1

所有回复 (5)

more options

Hi Perry, Firefox puts two formats (at least) on the clipboard. Plain text preserves extra spaces; HTML does not. So what you get from the clipboard depends on the format preferred by the receiving program.

For example, this paragraph will paste with extra spaces in a form field (textarea) but in a rich text editor, the spaces might be removed because the browser or other program preferentially uses the HTML.

Note: Firefox 64 is no longer supported. Currently, we support Firefox 74.0 and the Extended Support Release of Firefox 68. The foregoing is based on Firefox 74.0.

more options

Jscher...thanks... but I've already tried that method of copying...by selecting the area...right click ...copy as plain text... and putting it into my dev environment of Intellij or into a notepad document, it still removes the white spaces... I'll take a snip so you can see before and after....

it appears either the interface of mozilla isn't recognizing the white space... it works with google chrome and that recognizes the white space in my logs...but mozilla doesnt recognize it... I was hoping it was a setting or configuration that isn't allowing white space recognition ... any other suggestions?

由Perry于修改

more options

选择的解决方案

Hello Perry,

Maybe you could ask "erosman", the author of the
"Copy PlainText 1.10" extension that you have installed ?

https://addons.mozilla.org/en-US/firefox/addon/copy-plaintext/

more options

Perry said

I've already tried that method of copying...by selecting the area...right click ...copy as plain text...

Oh, I assumed you were using the built-in "Copy" function. I think McCoy has spotted the problem.

more options

I believe that extension worked... if I "copy plain text"...the auto trim feature within Mozilla removes excess white space...while the simple "copy" does not... thanks again for your help....I appreciate it a lot...

由Perry于修改