プロジェクト

全般

プロフィール

Vote #79993

完了

Better handling of HTML tables when creating an issue from an email

Admin Redmine さんが約4年前に追加. 約4年前に更新.

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

0%

予定工数:
category_id:
29
version_id:
127
issue_org_id:
31231
author_id:
332
assigned_to_id:
332
comments:
9
status_id:
5
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

In the email receiving feature, each cell in HTML tables is converted to a single line with blank lines before and after. As a result, a table is converted to a long sparse text and the appearance is not good.

I think we can improve the appearance and readability by grouping the converted text by row.

[Input]

Name (en) Name (fr) Code
red rouge #ff0000
green vert #00ff00
blue bleu #0000ff

[Output (before)]

Name (en)

Name (fr)

Code

red

rouge

#ff0000

green

vert

#00ff00

blue

bleu

#0000ff

[Output (after)]

*Name (en)*
*Name (fr)*
*Code*

red
rouge
#ff0000

green
vert
#00ff00

blue
bleu
#0000ff

journals

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

--------------------------------------------------------------------------------
I have attached a patch to add a test.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Very nice feature, but it doesn't apply cleanly on the current trunk. Can you update the patch? I would like to add support for lists (<ul>) as well.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Updated the patch for the current trunk (r18375).
--------------------------------------------------------------------------------
Committed the patches.
--------------------------------------------------------------------------------

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


related_issues

blocks,Closed,31232,Text may unexpectedly be enclosed in pre tags when an issue is created via HTML email

Admin Redmine さんが約4年前に更新

  • カテゴリEmail receiving_29 にセット
  • 対象バージョン4.1.0_127 にセット

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

いいね!0
いいね!0