Kërkoni te Asistenca

Shmangni karremëzime gjoja asistence. S’do t’ju kërkojmë kurrë të bëni një thirrje apo të dërgoni tekst te një numër telefoni, apo të na jepni të dhëna personale. Ju lutemi, raportoni veprimtari të dyshimtë duke përdorur mundësinë “Raportoni Abuzim”.

Mësoni Më Tepër

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 përgjigje
  • 1 e ka hasur këtë problem
  • 1 parje
  • Përgjigjja më e re nga 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.

Zgjidhje e zgjedhur

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/

Lexojeni këtë përgjigje brenda kontekstit 👍 1

Krejt Përgjigjet (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?

Ndryshuar nga Perry

more options

Zgjidhja e Zgjedhur

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

Ndryshuar nga Perry