プロジェクト

全般

プロフィール

Vote #75694

完了

Table renders wrong if a trailing space is after | symbol

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Text formatting_26
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
26
version_id:
102
issue_org_id:
18223
author_id:
108796
assigned_to_id:
1
comments:
7
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
86
ステータス-->[Closed]

説明

Also mentioned by Stephan Brönnimann in #14038#note-8

Table renders wrong is a space is after | symbol.

| 1.1 | 1.2 |
| 2.1 | 2.2 | <-space here
| 3.1 | 3.2 |
| 4.1 | 4.2 |

| 1.1 | 1.2 |
| 2.1 | 2.2 |
| 3.1 | 3.2 |
| 4.1 | 4.2 |


journals

#14038 is still open.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
I am not sure this is a defect.

Any character after the | works as a line continuation character to have multi-line text in a cell, or to dynamically create a multi-column table.

With this view, the issue is more that the space is not visible in the browser, so the user doesn't know it there.
However, if you *Preview* (or after *Submit*) it is easily spotted and corrected.
--------------------------------------------------------------------------------
Attached is a patch that fixes this (without breaking the original fix from #14038). Test case included.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Patch committed in r14611, thanks.
--------------------------------------------------------------------------------


related_issues

relates,Reopened,14038,Ordered/unordered lists inside table cell are mangled

Admin Redmine さんが3年以上前に更新

  • カテゴリText formatting_26 にセット
  • 対象バージョン3.2.0_102 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0