Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Cuireadh an snáithe seo sa chartlann. Cuir ceist nua má tá cabhair uait.

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 fhreagra
  • 1 leis an bhfadhb seo
  • 502 views
  • Freagra is déanaí ó 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.

Réiteach roghnaithe

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/

Read this answer in context 👍 1

All Replies (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?

Athraithe ag Perry ar

more options

Réiteach Roghnaithe

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...

Athraithe ag Perry ar