OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
fix(rubocop): obey linting
as-opa3ee99ac656b
diff --git a/app/models/work_package/pdf_export/table_of_contents.rb b/app/models/work_package/pdf_export/table_of_contents.rbindex e6726b7879f..18818a34f3b 100644--- a/app/models/work_package/pdf_export/table_of_contents.rb+++ b/app/models/work_package/pdf_export/table_of_contents.rb@@ -132,12 +132,17 @@ module WorkPackage::PDFExport::TableOfContentsendend- def write_toc_item!(toc_item, levels_indent_list)- y = pdf.y+ def build_toc_item_styles(toc_item)toc_item_style = styles.toc_item(toc_item[:level])part_style = toc_item_style.clonefont_styles = part_style.delete(:styles) || []part_style[:style] = font_styles[0] unless font_styles.empty?+ [part_style, toc_item_style]+ end++ def write_toc_item!(toc_item, levels_indent_list)+ y = pdf.y+ part_style, toc_item_style = build_toc_item_styles(toc_item)indent = levels_indent_list[toc_item[:level] - 1]write_part_float(indent[:level_indent], toc_item[:level_string], part_style)