From 61f87c98500316068a56657234dd40b74df764a7 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Fri, 17 May 2024 02:23:58 -0600 Subject: [PATCH] add additional test for #1642 --- spec/title_page_spec.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/spec/title_page_spec.rb b/spec/title_page_spec.rb index b3ec7f6c1..e06ae55cd 100644 --- a/spec/title_page_spec.rb +++ b/spec/title_page_spec.rb @@ -672,6 +672,19 @@ (expect title_page_lines).to eql ['Document Title', 'Doc', 'Writer'] end + it 'should allow author name and email to be placed on separate lines' do + pdf = to_pdf <<~'EOS', pdf_theme: { title_page_authors_content_with_email: %({author} +\n{email}) }, analyze: true + = Document Title + Doc Writer + :doctype: book + + body + EOS + + title_page_lines = pdf.lines pdf.find_text page_number: 1 + (expect title_page_lines).to eql ['Document Title', 'Doc Writer', 'doc@example.org'] + end + it 'should allow theme to customize content of authors line by available metadata' do pdf_theme = { title_page_authors_content_name_only: '{authorinitials}',