Re: Ignoring hard wrapping when doing copy and paste.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tim here.  The easiest way I know to reflow lines like that is to
pipe them through fmt(1), specifying a humongous line-width like

  fmt -w99999

If you have the content in your clipboard, you can use xsel or
xclip to pipe it out to fmt(1) and back into the clipboard like

  $ xsel -ob | fmt -w99999 | xsel -ib

before pasting it into Firefox (or email or whatever).  If you use it
frequently, it could be wrapped up in a shell-script or a hot-key in
your window-manager.

Does that do the trick for you?

-Tim

On December 12, 2021, Linux for blind general discussion wrote:
> Okay, so my text editing environment of choice is Nano running in
> the Linux Console, and I'm constantly using the justify function to
> hard wrap text because lines wider than the screen are difficult to
> work with.
> 
> If I need to post something I wrote in nano online, but can't just
> upload the .txt, I'll save, close nano, switch to tty1 where I
> usually have Firefox running in a stripped down xserver, open the
> text file in Firefox, and copy and paste into the text box.
> 
> >From my perspective, everything works fine, but I've gotten
> >complaints  
> from sighted users about the extra line breaks from the hardwrapping
> making text posted in this manner hard to read.
> 
> Is there a way to make Firefox ignore the hard wrapping when copying
> text from a hardwrapped text file to a web form, or failing that, an
> easy means of copying a hardwrapped text file to an unwrapped text
> file?
> 
> _______________________________________________
> Blinux-list mailing list
> Blinux-list@xxxxxxxxxx
> https://listman.redhat.com/mailman/listinfo/blinux-list
> 

_______________________________________________
Blinux-list mailing list
Blinux-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/blinux-list




[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]