Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-27505

A blank line in the beginning of a textarea is removed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • None
    • Jenkins 1.605

      A blank line in the beginning of a textarea is removed.
      It is caused for the specification of HTML:
      http://www.w3.org/TR/html5/syntax.html#syntax-newlines

      A single newline may be placed immediately after the start tag of pre and textarea elements. If the element's contents are intended to start with a newline, two consecutive newlines thus need to be included by the author.

      (I could not found the description in HTML4.01)

      How to reproduce an issue:

      1. Create a new free style project.
      2. Check "This build is parameterized"
      3. Add "Choice Parameter":
        • Name: PARAM1
        • Choices
          value1
          
          value2
          
          value3
          
      4. Save the project configuration.
      5. Click "configuration" and go to the project configuration page again.
      6. Choices of PARAM1 gets like this:
        value1
        
        value2
        
        value3
        
        • The empty line at the beginning is removed!

            ikedam ikedam
            ikedam ikedam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: