@@ -604,13 +604,12 module Redmine | |||||
604 | unless issue.leaf? |
|
604 | unless issue.leaf? | |
605 | # for CJK |
|
605 | # for CJK | |
606 | truncate_length = ( l(:general_pdf_encoding).upcase == "UTF-8" ? 90 : 65 ) |
|
606 | truncate_length = ( l(:general_pdf_encoding).upcase == "UTF-8" ? 90 : 65 ) | |
607 |
|
||||
608 | pdf.SetFontStyle('B',9) |
|
607 | pdf.SetFontStyle('B',9) | |
609 | pdf.RDMCell(35+155,5, l(:label_subtask_plural) + ":", "LTR") |
|
608 | pdf.RDMCell(35+155,5, l(:label_subtask_plural) + ":", "LTR") | |
610 | pdf.Ln |
|
609 | pdf.Ln | |
611 | issue_list(issue.descendants.visible.sort_by(&:lft)) do |child, level| |
|
610 | issue_list(issue.descendants.visible.sort_by(&:lft)) do |child, level| | |
612 |
buf = |
|
611 | buf = "#{child.tracker} # #{child.id}: #{child.subject}". | |
613 |
|
|
612 | truncate(truncate_length) | |
614 | level = 10 if level >= 10 |
|
613 | level = 10 if level >= 10 | |
615 | pdf.SetFontStyle('',8) |
|
614 | pdf.SetFontStyle('',8) | |
616 | pdf.RDMCell(35+135,5, (level >=1 ? " " * level : "") + buf, "L") |
|
615 | pdf.RDMCell(35+135,5, (level >=1 ? " " * level : "") + buf, "L") | |
@@ -624,7 +623,6 module Redmine | |||||
624 | unless relations.empty? |
|
623 | unless relations.empty? | |
625 | # for CJK |
|
624 | # for CJK | |
626 | truncate_length = ( l(:general_pdf_encoding).upcase == "UTF-8" ? 80 : 60 ) |
|
625 | truncate_length = ( l(:general_pdf_encoding).upcase == "UTF-8" ? 80 : 60 ) | |
627 |
|
||||
628 | pdf.SetFontStyle('B',9) |
|
626 | pdf.SetFontStyle('B',9) | |
629 | pdf.RDMCell(35+155,5, l(:label_related_issues) + ":", "LTR") |
|
627 | pdf.RDMCell(35+155,5, l(:label_related_issues) + ":", "LTR") | |
630 | pdf.Ln |
|
628 | pdf.Ln | |
@@ -639,7 +637,7 module Redmine | |||||
639 | end |
|
637 | end | |
640 | buf += "#{relation.other_issue(issue).tracker}" + |
|
638 | buf += "#{relation.other_issue(issue).tracker}" + | |
641 | " # #{relation.other_issue(issue).id}: #{relation.other_issue(issue).subject}" |
|
639 | " # #{relation.other_issue(issue).id}: #{relation.other_issue(issue).subject}" | |
642 |
buf = truncate( |
|
640 | buf = buf.truncate(truncate_length) | |
643 | pdf.SetFontStyle('', 8) |
|
641 | pdf.SetFontStyle('', 8) | |
644 | pdf.RDMCell(35+155-60, 5, buf, "L") |
|
642 | pdf.RDMCell(35+155-60, 5, buf, "L") | |
645 | pdf.SetFontStyle('B',8) |
|
643 | pdf.SetFontStyle('B',8) |
General Comments 0
You need to be logged in to leave comments.
Login now