Patch #30026
openmacros and textile at pdf export in custom field
Added by Dirk Rudolph about 8 years ago. Updated over 7 years ago.
Description
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.
Files
| issues_pdf_helper-redmine-3.4.6.rb.patch (4.71 KB) issues_pdf_helper-redmine-3.4.6.rb.patch | Dirk Rudolph, 2018-11-24 22:53 | ||
| issues_pdf_helper-redmine-3.4.6.rb.patch (4.71 KB) issues_pdf_helper-redmine-3.4.6.rb.patch | Dirk Rudolph, 2018-11-25 01:04 | ||
| issues_pdf_helper-redmine-3.4.6_2sec_version.rb (22.9 KB) issues_pdf_helper-redmine-3.4.6_2sec_version.rb | Dirk Rudolph, 2018-11-25 01:08 | ||
| table-breaks-layout.pdf (95.5 KB) table-breaks-layout.pdf | Go MAEDA, 2018-11-25 05:29 | ||
| issues_pdf_helper.rb-redmine-3.4.6_3rd.patch (5.41 KB) issues_pdf_helper.rb-redmine-3.4.6_3rd.patch | Dirk Rudolph, 2018-11-25 14:14 | ||
| issues_pdf_helper.rb-redmine-3.4.6_4th.patch (5.68 KB) issues_pdf_helper.rb-redmine-3.4.6_4th.patch | Dirk Rudolph, 2018-11-25 16:38 |
Updated by Dirk Rudolph about 8 years ago
Actions
#1
Updated by Dirk Rudolph about 8 years ago
Actions
#2
- File issues_pdf_helper-redmine-3.4.6_2sec_version.rb issues_pdf_helper-redmine-3.4.6_2sec_version.rb added
little optimizations
Updated by Go MAEDA about 8 years ago
Actions
#3
- File table-breaks-layout.pdf table-breaks-layout.pdf added
Thank you for the patch. But I noticed the following points:
- The values should be textilized only when the
text_formattingattribute for the custom field istrue. The patch always textilizes the value - Inserting a table breaks the layout. Please see the attached pdf (table-breaks-layout.pdf). Blank lines are inserted after the table
Updated by Dirk Rudolph about 8 years ago
Actions
#4
Go MAEDA wrote:
- The values should be textilized only when the
text_formattingattribute for the custom field istrue. 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 (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.
Updated by Dirk Rudolph almost 8 years ago
Actions
#5
- File issues_pdf_helper.rb-redmine-3.4.6_3rd.patch issues_pdf_helper.rb-redmine-3.4.6_3rd.patch added
Some optimizations for the layout.
For the cell height calculation, some html-strings will remove.
Updated by Dirk Rudolph almost 8 years ago
Actions
#6
- File issues_pdf_helper.rb-redmine-3.4.6_4th.patch issues_pdf_helper.rb-redmine-3.4.6_4th.patch added
Further optimizations for issues list ...
Updated by Go MAEDA over 7 years ago
Actions
#7
- Target version set to Candidate for next major release