プロジェクト

全般

プロフィール

Vote #79655

未完了

macros and textile at pdf export in custom field

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

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
PDF export_39
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
39
version_id:
32
issue_org_id:
30026
author_id:
360265
assigned_to_id:
0
comments:
7
status_id:
1
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

Redmine in version 3.4.6 don't fully support textile and macros in pdf export/print when custom fields be used formatted text.
I did some changes in the issue_pdf_helper.rb to do that.


journals

--------------------------------------------------------------------------------
little optimizations
--------------------------------------------------------------------------------
Thank you for the patch. But I noticed the following points:

* The values should be textilized only when the @text_formatting@ attribute for the custom field is @true@. The patch always textilizes the value
* Inserting a table breaks the layout. Please see the attached pdf (attachment:table-breaks-layout.pdf). Blank lines are inserted after the table
--------------------------------------------------------------------------------
Go MAEDA wrote:
> * The values should be textilized only when the @text_formatting@ attribute for the custom field is @true@. The patch always textilizes the value

No, the used function show_value() seems to check that. I tried out.

> * Inserting a table breaks the layout. Please see the attached pdf (attachment:table-breaks-layout.pdf). Blank lines are inserted after the table

Yes is true. The table cell becomes bigger because the height is calculated over html code in the backround. I think it's better to have a big cell and the content fits into, instead a cell that's to small. But I will trie to optimize.

--------------------------------------------------------------------------------
Some optimizations for the layout.
For the cell height calculation, some html-strings will remove.
--------------------------------------------------------------------------------
Further optimizations for issues list ...
--------------------------------------------------------------------------------

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

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

いいね!0
いいね!0