Problem/Motivation

When I modify an article type node, the line breaks entered in the "Revision log message" do not appear on the /node/NID/revisions page. Is this a bug or normal behavior?

Steps to reproduce

- Start a Drupal 10.3 on the simplytest.me site.
- Add a new article type node and fill the Revision log message:
"One
Two
Three"

- Save the node
- Line breaks will be removed on the /node/1/revisions page: "One Two Three"

Proposed resolution

Remaining tasks

Prepare this for a usability review, see comment #10
Discuss ideas in #8

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Issue fork drupal-3464019

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

fox mulder created an issue. See original summary.

cilefen’s picture

Version: 10.3.x-dev » 11.x-dev

aaron.ferris made their first commit to this issue’s fork.

aaron.ferris’s picture

Seems the revision log message does contain carriage returns, but they're being removed - possibly by Twig?

How about something like the attached MR, if we want to do this of course (and we are talking about /r/n).

Example revision log message: This/r/nshould/r/nbe /r/non/r/nmultiple/r/nlines

aaron.ferris’s picture

StatusFileSize
new158.63 KB

aaron.ferris changed the visibility of the branch 3464019-newlines-in-revision to hidden.

acbramley’s picture

Status: Active » Postponed (maintainer needs more info)
Issue tags: +Needs usability review

Tagging for UX review as this has quite a large effect on the display of the Revisions page.

We'd also want to make the same changes in the generic revision UI (VersionHistoryController::getRevisionDescription) if we want to go ahead with this.

Another option would be to turn this into a real theme function (rather than an inline_template) that could be preprocessed/overridden to give projects an easy way to alter it themselves.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.

quietone’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Needs work

@acbramley, I don't see a question in your comment, did you intend to set this to PMNMI?

Changing to needs work to prepare for a usability review, See https://www.drupal.org/docs/develop/issues/fields-and-other-parts-of-an-.... And ask in #ux to learn about how to get this discussed at a ux meeting.

acbramley’s picture

@quietone the question is essentially "is this a good idea", IMO it's not.