Cerca nel supporto

Attenzione alle mail truffa. Mozilla non chiederà mai di chiamare o mandare messaggi a un numero di telefono o di inviare dati personali. Segnalare qualsiasi attività sospetta utilizzando l'opzione “Segnala abuso”.

Ulteriori informazioni

Questa discussione è archiviata. Inserire una nuova richiesta se occorre aiuto.

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 risposte
  • 1 ha questo problema
  • 1 visualizzazione
  • Ultima risposta di 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.

Soluzione scelta

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/

Leggere questa risposta nel contesto 👍 1

Tutte le risposte (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?

Modificato da Perry il

more options

Soluzione scelta

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

Modificato da Perry il