From 8c761015275360adbad825600e130bb388d6ae29 Mon Sep 17 00:00:00 2001 From: yokada Date: Mon, 15 Oct 2018 05:29:29 +0900 Subject: [PATCH] Update crayon_formatter.class.php --- crayon_formatter.class.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/crayon_formatter.class.php b/crayon_formatter.class.php index 9adf4c46..b48b0407 100644 --- a/crayon_formatter.class.php +++ b/crayon_formatter.class.php @@ -115,8 +115,8 @@ public static function print_code($hl, $code, $line_numbers = TRUE, $print = TRU $_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;'; - $toolbar_height = $font_size * 1.5 . 'px !important;'; - $info_height = $font_size * 1.4 . 'px !important;'; + $toolbar_height = $_font_size * 1.5 . 'px !important;'; + $info_height = $_font_size * 1.4 . 'px !important;'; $font_style .= "font-size: $font_size line-height: $line_height"; $toolbar_style .= "font-size: $font_size"; @@ -130,8 +130,9 @@ public static function print_code($hl, $code, $line_numbers = TRUE, $print = TRU } } else if (!$hl->is_inline()) { if (($font_size = CrayonGlobalSettings::get(CrayonSettings::FONT_SIZE)) !== FALSE) { - $font_size = $font_size->def() . 'px !important;'; - $line_height = ($font_size * 1.4) . 'px !important;'; + $_font_size = $font_size->def(); + $font_size = $_font_size . 'px !important;'; + $line_height = ($_font_size * 1.4) . 'px !important;'; } }