Actions
Feature #31231
closedBetter handling of HTML tables when creating an issue from an email
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Description
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]
<table> <tr> <th>Name (en)</th> <th>Name (fr)</th> <th>Code</th> </tr> <tr> <td>red</td> <td>rouge</td> <td>#ff0000</td> </tr> <tr> <td>green</td> <td>vert</td> <td>#00ff00</td> </tr> <tr> <td>blue</td> <td>bleu</td> <td>#0000ff</td> </tr> </table>
[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
Files
Related issues
Updated by Go MAEDA over 5 years ago
- Blocked by Defect #31232: Text may unexpectedly be enclosed in pre tags when an issue is created via HTML email added
Updated by Mizuki ISHIKAWA over 5 years ago
- File add-tests.patch add-tests.patch added
I have attached a patch to add a test.
Updated by Go MAEDA over 5 years ago
- Target version set to Candidate for next major release
Updated by Marius BĂLTEANU over 5 years ago
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 by Go MAEDA over 5 years ago
- File better-handling-of-html-tables-v2.patch better-handling-of-html-tables-v2.patch added
- Target version changed from Candidate for next major release to 4.1.0
Updated the patch for the current trunk (r18375).
Updated by Go MAEDA about 5 years ago
- Status changed from New to Closed
- Resolution set to Fixed
Committed the patches.
Updated by Go MAEDA about 5 years ago
- Subject changed from Better conversion of HTML tables when receiving emails to Better handling of HTML tables when creating an issue from an email
Actions