From 86a4e181343c22ed4ecebf11cab274ec91a16209 Mon Sep 17 00:00:00 2001 From: Mario Pietsch Date: Tue, 14 Jul 2026 13:04:50 +0200 Subject: [PATCH] =?UTF-8?q?diff-text=20change=20newline=20to=20=E2=86=B2?= =?UTF-8?q?=20(#9736)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * diff-text change newline to ↲ * Add ChangeNote --- core/modules/widgets/diff-text.js | 2 +- .../5.5.0/#9736-difftext-newline-glyph.tid | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 editions/tw5.com/tiddlers/releasenotes/5.5.0/#9736-difftext-newline-glyph.tid diff --git a/core/modules/widgets/diff-text.js b/core/modules/widgets/diff-text.js index d91d4b96a..3c32c9113 100644 --- a/core/modules/widgets/diff-text.js +++ b/core/modules/widgets/diff-text.js @@ -22,7 +22,7 @@ Inherit from the base widget class DiffTextWidget.prototype = new Widget(); DiffTextWidget.prototype.invisibleCharacters = { - "\n": "↩︎\n", + "\n": "↲\n", "\r": "⇠", "\t": "⇥\t" }; diff --git a/editions/tw5.com/tiddlers/releasenotes/5.5.0/#9736-difftext-newline-glyph.tid b/editions/tw5.com/tiddlers/releasenotes/5.5.0/#9736-difftext-newline-glyph.tid new file mode 100644 index 000000000..207a307dc --- /dev/null +++ b/editions/tw5.com/tiddlers/releasenotes/5.5.0/#9736-difftext-newline-glyph.tid @@ -0,0 +1,12 @@ +change-category: widget +change-type: enhancement +created: 20260711020921000 +description: The diff-text widget shows removed or added newlines with a visible ↲ glyph +github-contributors: pmario +github-links: https://github.com/TiddlyWiki/TiddlyWiki5/pull/9736 +release: 5.5.0 +tags: $:/tags/ChangeNote +title: $:/changenotes/5.5.0/#9736 +type: text/vnd.tiddlywiki + +* The diff-text widget marks newline characters in a diff with the visible `↲` glyph (U+21B2) instead of an invisible character, so line break changes are recognisable in the rendered diff (fixes [[Issue #9461|https://github.com/TiddlyWiki/TiddlyWiki5/issues/9461]])