Vote #79993
完了Better handling of HTML tables when creating an issue from an email
0%
説明
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