diff options
| -rw-r--r-- | lib/asciidoctor/block.rb | 3 | ||||
| -rw-r--r-- | lib/asciidoctor/document.rb | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/asciidoctor/block.rb b/lib/asciidoctor/block.rb index fba49e74..ef098630 100644 --- a/lib/asciidoctor/block.rb +++ b/lib/asciidoctor/block.rb @@ -68,8 +68,7 @@ class Block < AbstractBlock # subs attribute is not honored else @default_subs = nil - # interpolation is the fastest way to dup subs as a string - @attributes['subs'] = %(#{subs}) + @attributes['subs'] = subs.to_s end # resolve the subs eagerly only if subs option is specified # QUESTION should we skip subsequent calls to commit_subs? diff --git a/lib/asciidoctor/document.rb b/lib/asciidoctor/document.rb index 196ba5b4..b37746d5 100644 --- a/lib/asciidoctor/document.rb +++ b/lib/asciidoctor/document.rb @@ -401,11 +401,11 @@ class Document < AbstractBlock # allow common attributes backend and doctype to be set using options hash, coerce values to string if (backend_val = options[:backend]) - attr_overrides['backend'] = %(#{backend_val}) + attr_overrides['backend'] = backend_val.to_s end if (doctype_val = options[:doctype]) - attr_overrides['doctype'] = %(#{doctype_val}) + attr_overrides['doctype'] = doctype_val.to_s end if @safe >= SafeMode::SERVER |
