From c6cffb186deac27cfb7163c2f3f3a1043af478a5 Mon Sep 17 00:00:00 2001 From: chiu Date: Tue, 25 Feb 2020 23:53:33 +0800 Subject: [PATCH] fix error --- announcement.gemspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/announcement.gemspec b/announcement.gemspec index 8dc86a5..9978d06 100644 --- a/announcement.gemspec +++ b/announcement.gemspec @@ -30,10 +30,10 @@ all_template.each do |folder| texts = File.read(filename) regex_pattern = /.response-content[^{]*{[^}]*@media[^{]*{[^{]*}[^{]*@media[^{]*{[^{]*}[^}]*}[^}]*}/m if !texts.include? "$font-h1:" - texts = "$font-h1: 1.5rem;\n$font-h2: 1.35rem;\n$font-h3: 1.2rem;\n$font-h4: 1.1rem;\n$font-h5: 1rem;\n$font-h6: 0.9rem;\n\n" + text + texts = "$font-h1: 1.5rem;\n$font-h2: 1.35rem;\n$font-h3: 1.2rem;\n$font-h4: 1.1rem;\n$font-h5: 1rem;\n$font-h6: 0.9rem;\n\n" + texts end if !texts.include? "$main-font:" - texts = "$main-font: Arial, \"微軟正黑體\", \"Helvetica Neue\", Helvetica, sans-serif;\n" + text + texts = "$main-font: Arial, \"微軟正黑體\", \"Helvetica Neue\", Helvetica, sans-serif;\n" + texts end if !texts.include? "$theme-white" texts = "$theme-white: #fff;\n" + texts