[PR #1893] [MERGED] fix(editor): preserve consecutive whitespace in comments in TipTap #3765

Closed
opened 2026-03-22 14:53:31 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-vikunja/vikunja/pull/1893
Author: @kolaente
Created: 11/27/2025
Status: Merged
Merged: 11/27/2025
Merged by: @kolaente

Base: mainHead: fix-whitespace-in-comments-new


📝 Commits (3)

  • 9e0022a fix(editor): preserve consecutive whitespace in comments in TipTap
  • e8c5045 fix(editor): use preserveWhitespace true instead of full to avoid duplicate checklist items
  • f39deb2 Merge branch 'main' into fix-whitespace-in-comments-new

📊 Changes

1 file changed (+22 additions, -4 deletions)

View changed files

📝 frontend/src/components/input/editor/TipTap.vue (+22 -4)

📄 Description

Fixes https://github.com/go-vikunja/vikunja/issues/1844
Closes https://github.com/go-vikunja/vikunja/pull/1845

Ensure multiple spaces in comment content are no longer collapsed when editing/saving by:

  • Adding SetContentOptions with parseOptions.preserveWhitespace = 'full'
  • Applying those options to all setContent calls (initial load, exit edit mode, post-upload cleanup)
  • Enabling preserveWhitespace in editor parseOptions

Previously, repeated spaces were normalized away after setContent(false), causing comments with deliberate spacing to be altered unexpectedly.

No behavioral changes beyond whitespace retention; renders identical except space fidelity.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-vikunja/vikunja/pull/1893 **Author:** [@kolaente](https://github.com/kolaente) **Created:** 11/27/2025 **Status:** ✅ Merged **Merged:** 11/27/2025 **Merged by:** [@kolaente](https://github.com/kolaente) **Base:** `main` ← **Head:** `fix-whitespace-in-comments-new` --- ### 📝 Commits (3) - [`9e0022a`](https://github.com/go-vikunja/vikunja/commit/9e0022aca46b417bddea15d695b45f503874b202) fix(editor): preserve consecutive whitespace in comments in TipTap - [`e8c5045`](https://github.com/go-vikunja/vikunja/commit/e8c50457ce8a5b7dd14e6c4d43460d2b4db9e746) fix(editor): use preserveWhitespace true instead of full to avoid duplicate checklist items - [`f39deb2`](https://github.com/go-vikunja/vikunja/commit/f39deb21b63597551488138d5c9e633ae4f46816) Merge branch 'main' into fix-whitespace-in-comments-new ### 📊 Changes **1 file changed** (+22 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/input/editor/TipTap.vue` (+22 -4) </details> ### 📄 Description Fixes https://github.com/go-vikunja/vikunja/issues/1844 Closes https://github.com/go-vikunja/vikunja/pull/1845 Ensure multiple spaces in comment content are no longer collapsed when editing/saving by: - Adding SetContentOptions with parseOptions.preserveWhitespace = 'full' - Applying those options to all setContent calls (initial load, exit edit mode, post-upload cleanup) - Enabling preserveWhitespace in editor parseOptions Previously, repeated spaces were normalized away after setContent(false), causing comments with deliberate spacing to be altered unexpectedly. No behavioral changes beyond whitespace retention; renders identical except space fidelity. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-22 14:53:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#3765