ARCHIVED: Using Firefox, why are line breaks lost when I copy multiple lines of example text from the IU Knowledge Base and paste them into another file?

This content has been archived, and is no longer maintained by Indiana University. Information here may no longer be accurate, and links may no longer be available or reliable.

Using Firefox, if you copy multiple lines of example text from an Indiana University Knowledge Base document, the line breaks will be lost when you paste the text into another file (e.g., an email message, a Word document, or a Unix file), converting the multiple line example into a single line of text. This is a confirmed, long-standing bug (see Bugzilla@Mozilla - Bug 116083) regarding how Firefox treats pre-formatted text on some web pages, including IU Knowledge Base documents.

For example, using Firefox, you cannot copy the following example and paste it as it appears here into an HTML file:

    <title>Hello world</title>
        <p>Hello world!</p> 

The copied text will not retain the line breaks when pasted into another file; instead the example will be converted into a single line of text:

<html> <title>Hello world</title> <body> <p>Hello world!</p> </body> </html>

Likewise, copying a sample TORQUE script from an IU Knowledge Base document in Firefox will also be problematic; for example:

  #PBS -k o 
  #PBS -l nodes=1:ppn=1,walltime=30:00 
  #PBS -M 
  #PBS -m abe
  #PBS -N JobName 
  #PBS -j oe

Copying the above example from Firefox and pasting it into a Unix file will convert the example into a single line of text:

#!/bin/bash #PBS -k o #PBS -l nodes=1:ppn=1,walltime=30:00 #PBS -M #PBS -m abe #PBS -N JobName #PBS -j oe ./a.out

As a workaround, use another browser, such as Internet Explorer, Chrome, or Safari. Mozilla, the designers of Firefox, have not yet provided a solution or a reliable workaround for this bug.

This is document bdkf in the Knowledge Base.
Last modified on 2018-01-18 17:31:37.

Contact us

For help or to comment, email the UITS Support Center.