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

A blank line in the beginning of a textarea is removed

    • 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!

          [JENKINS-27505] A blank line in the beginning of a textarea is removed

          ikedam created issue -
          ikedam made changes -
          Remote Link New: This issue links to "PR-1612 (Web Link)" [ 12172 ]
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          ikedam made changes -
          Link New: This issue is related to JENKINS-33254 [ JENKINS-33254 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 161714 ] New: JNJira + In-Review [ 196848 ]
          Ben Apgar made changes -
          Link New: This issue relates to JENKINS-25681 [ JENKINS-25681 ]
          Ben Apgar made changes -
          Link New: This issue relates to JENKINS-8539 [ JENKINS-8539 ]

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

              Created:
              Updated:
              Resolved: