From ddc54cb2080a122ff413f84985bd9f3b9730dcfc Mon Sep 17 00:00:00 2001 From: Karl-Johan Karlsson Date: Sun, 21 Jan 2024 21:24:18 +0100 Subject: [PATCH] Only log section break symbol if one is used --- lib/fimfic2pdf/transformer.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/fimfic2pdf/transformer.rb b/lib/fimfic2pdf/transformer.rb index e6410a4..fad0e0c 100644 --- a/lib/fimfic2pdf/transformer.rb +++ b/lib/fimfic2pdf/transformer.rb @@ -28,7 +28,12 @@ def initialize(options) @logger.debug "Preparing to transform story #{@options.id}" @config_file = @options.id + File::SEPARATOR + 'config.yaml' @conf = YAML.safe_load_file(@config_file) - @logger.debug "Using section break style #{@options.hr_style} with symbol #{@options.hr_symbol}" + @logger.debug "Using section break style #{@options.hr_style}" + + if @options.hr_symbol + " with symbol #{@options.hr_symbol}" + else + '' + end @replacements = {} @in_blockquote = false @logger.debug("Using chapter style #{@options.chapter_style || 'default'}")