From fc8fc8fd656a85d1cd56afece3516456205da645 Mon Sep 17 00:00:00 2001 From: Hajime Kurita Date: Sun, 15 Apr 2018 10:28:32 +0800 Subject: [PATCH] Bug fix: removed ". 'px !important;'" because its value is used as number and it is yeilding warning like Notice: A non well formed numeric value encountered in /var/www/web/app/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118 And this string is added in different lines, so removing should be O.K. --- crayon_formatter.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crayon_formatter.class.php b/crayon_formatter.class.php index 9adf4c46..bd5a6372 100644 --- a/crayon_formatter.class.php +++ b/crayon_formatter.class.php @@ -111,7 +111,7 @@ public static function print_code($hl, $code, $line_numbers = TRUE, $print = TRU // TODO improve logic if ($hl->setting_val(CrayonSettings::FONT_SIZE_ENABLE)) { $_font_size = $hl->setting_val(CrayonSettings::FONT_SIZE); - $font_size = $_font_size . 'px !important;'; + $font_size = $_font_size; $_line_height = $hl->setting_val(CrayonSettings::LINE_HEIGHT); // Don't allow line height to be less than font size $line_height = ($_line_height > $_font_size ? $_line_height : $_font_size) . 'px !important;';