Skip to content

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

avoid modifying string

ulferts1f5555dfab9b
diff --git a/app/helpers/mail_layout_helper.rb b/app/helpers/mail_layout_helper.rb
index 287a5506e9c..f9c897cd852 100644
--- a/app/helpers/mail_layout_helper.rb
+++ b/app/helpers/mail_layout_helper.rb
@@ -28,9 +28,10 @@
module MailLayoutHelper
def placeholder_table_styles(options = {})
+ style_options = options[:style].present? ? options.delete(:style) : ""
+
default_options = {
- style: "table-layout:fixed;border-collapse:separate;border-spacing:0;font-family:Helvetica;" <<
- (options[:style].present? ? options.delete(:style) : ""),
+ style: "table-layout:fixed;border-collapse:separate;border-spacing:0;font-family:Helvetica;#{style_options}",
cellspacing: "0",
cellpadding: "0"
}