Skip to content

[JENKINS-1031] Log messages on changes page do not wrap. #13856

Closed

Description

@jenkins-infra-bot

Subversion commit messages do not wrap if they do not contain line breaks.
When rendered as HTML, all of the spaces are replaced with  , which
prevents the wrapping. I don't think this is particularly useful behaviour
since it means lots of horizontal scrolling when the message is long.


Originally reported by dwdyer, imported from: Log messages on changes page do not wrap.
  • assignee: dwdyer
  • status: Closed
  • priority: Major
  • component(s): core
  • resolution: Fixed
  • resolved: 2007-11-22T12:08:16+00:00
  • votes: 0
  • watchers: 0
  • imported: 2025-11-24
Raw content of original issue

Subversion commit messages do not wrap if they do not contain line breaks. When rendered as HTML, all of the spaces are replaced with  , which prevents the wrapping. I don't think this is particularly useful behaviour since it means lots of horizontal scrolling when the message is long.

  • environment: Platform: All, OS: All

Activity

  1. jenkins-infra-bot commented on Nov 21, 2007

    @jenkins-infra-bot
    Author
    dwdyer:
    • Original comment link
    • Raw content of original comment:

      Fixed in version 1.36 of Util.java. Modified the escape(String) method so that it doesn't replace spaces with HTML non-breaking space entities. Should be in Hudson 1.159.

    Fixed in version 1.36 of Util.java. Modified the escape(String) method so that
    it doesn't replace spaces with HTML non-breaking space entities. Should be in
    Hudson 1.159.

  2. jenkins-infra-bot commented on Nov 21, 2007

    @jenkins-infra-bot
    Author
    kohsuke:
    • Original comment link
    • Raw content of original comment:

      I agree that we should render Subversion commit messages to allow wrapping, but I have a problem with this change.

      I think Util.espcae should remain faithful conversion from ascii text to HTML. Not converting whitespace to   means consective whitespaces will be combined into one.

      I suggest we handle this differently. We should convert like:

      'abc def' -> 'abc def' 'abc def' -> 'abc  def' 'abc def' -> 'abc   def' 'abc def' -> 'abc    def' 'abc def' -> 'abc     def'

      In this way we can allow line wraps but without incorrectly trimming whitespaces.

    I agree that we should render Subversion commit messages to allow wrapping, but
    I have a problem with this change.

    I think Util.espcae should remain faithful conversion from ascii text to HTML.
    Not converting whitespace to   means consective whitespaces will be
    combined into one.

    I suggest we handle this differently. We should convert like:

    'abc def' -> 'abc def'
    'abc def' -> 'abc  def'
    'abc def' -> 'abc   def'
    'abc def' -> 'abc    def'
    'abc def' -> 'abc     def'

    In this way we can allow line wraps but without incorrectly trimming whitespaces.

  3. jenkins-infra-bot commented on Nov 22, 2007

    @jenkins-infra-bot
    Author
    dwdyer:
    • Original comment link
    • Raw content of original comment:

      OK. I'll take a look at doing it the way that you suggest when I get some time later today.

    OK. I'll take a look at doing it the way that you suggest when I get some time
    later today.

  4. jenkins-infra-bot commented on Nov 22, 2007

    @jenkins-infra-bot
    Author
    dwdyer:
    • Original comment link
    • Raw content of original comment:

      I've just checked in a change (version 1.37 of Util.java) that implements the space-escaping as suggested. Tested locally and it seems fine.

    I've just checked in a change (version 1.37 of Util.java) that implements the
    space-escaping as suggested. Tested locally and it seems fine.

  5. removed
    bugFor changelog: Minor bug. Will be listed after features
    on Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions