Uploaded image for project: 'Commons Text'
  1. Commons Text
  2. TEXT-124

WordUtils.wrap breaks compatibility for leading white spaces of the first line

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      // commons-lang 2.6
      > WordUtils.wrap("    foo", wrapLength)
          foo
      
      // commons-text and commons-lang3
      > WordUtils.wrap("    foo", wrapLength)
      foo
      

      I prefer to the behavior of commons-lang 2.6.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tasanuma Takanobu Asanuma
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: