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

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      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

              • Assignee:
                Unassigned
                Reporter:
                tasanuma Takanobu Asanuma
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: