Project

General

Profile

Actions

Feature #24662

open

Add option to remove trailing whitespace on saving wiki pages

Added by David Lukas Müller over 7 years ago. Updated over 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

Formatting non-trivial tables with many rows and columns in Textile is very prone to formatting errors when trailing whitespace is inserted unintentionally after the trailing pipe symbol "|".

To illustrate this consieder the following table

|_. row |_. A |_. B |
| 1 | a1 | b1 |
| 2 | a2 | b2 |
| 3 | a3 | b3 |

If written as intended without trailing whitespace everything looks good, ...

row A B
1 a1 b1
2 a2 b2
3 a3 b3

... but the layout is destroyed when trailing whitespace is added (unintentionally) at the end of the second row:

row A B
1 a1 b1
2 a2 b2
3 a3 b3

Since I cannot figure out real use cases for meaningful trailing whitespaces, I would suggest to add an checkbox

[ ] remove trailing whitespace on save

near the "Save" and "Preview" buttons when editing a wiki page.

Actions

Also available in: Atom PDF