summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2022-05-20 23:42:13 -0600
committerDan Allen <dan.j.allen@gmail.com>2022-05-21 01:42:25 -0600
commitc8fa1a88d410db2453cbe6d5e4e2758320886150 (patch)
treedb35cdfac911aac4bec69f3bfde6cbf954af5723
parentb4ef253996b58503510d81a5bf2ef7340185348a (diff)
expand test for collapsing space around hidden index terms
-rw-r--r--spec/index_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/index_spec.rb b/spec/index_spec.rb
index d30d9f1e..0fe4bd6c 100644
--- a/spec/index_spec.rb
+++ b/spec/index_spec.rb
@@ -15,13 +15,15 @@ describe 'Asciidoctor::PDF::Converter - Index' do
it 'should collapse space in front of hidden index terms' do
pdf = to_pdf <<~'EOS', analyze: true
before
+ (((zen)))
(((yin)))
(((yang)))
- (((foobar)))
after
+
+ foo (((bar))) baz
EOS
- (expect pdf.lines).to eql ['before after']
+ (expect pdf.lines).to eql ['before after', 'foo baz']
end
it 'should not add index section if there are no index entries' do