From 41438d96775c4cceb88ab78f94c0d041e6e3d200 Mon Sep 17 00:00:00 2001 From: xyz65535 Date: Wed, 23 Oct 2024 00:17:00 +0200 Subject: [PATCH] fixing bug for broken utils/round_trip.rb --- lib/coradoc/transformer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/coradoc/transformer.rb b/lib/coradoc/transformer.rb index 44e7115..917658b 100644 --- a/lib/coradoc/transformer.rb +++ b/lib/coradoc/transformer.rb @@ -316,7 +316,7 @@ class NamedAttribute < Struct.new(:key, :value); end elsif delimiter_c == "+" Element::Block::Pass.new(opts) elsif delimiter_c == "-" - if (attribute_list.positional[0] == "quote") + if (attribute_list && attribute_list.positional[0] == "quote") Element::Block::Quote.new(title, opts) end elsif delimiter_c == "_"