-
Notifications
You must be signed in to change notification settings - Fork 500
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolves #74 allow page break before and after part and before chapte…
…r to be configured by theme (PR #1209)
- Loading branch information
1 parent
15972bf
commit b904791
Showing
5 changed files
with
113 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
require_relative 'spec_helper' | ||
|
||
describe 'Asciidoctor::PDF::Converter - Xref' do | ||
context 'Interdocument' do | ||
it 'should convert interdocument xrefs to internal references' do | ||
input_file = Pathname.new fixture_file 'book.adoc' | ||
pdf = to_pdf input_file | ||
p2_annotations = get_annotations pdf, 2 | ||
(expect p2_annotations).to have_size 1 | ||
chapter_2_ref = p2_annotations[0] | ||
(expect chapter_2_ref[:Subtype]).to eql :Link | ||
(expect chapter_2_ref[:Dest]).to eql '_chapter_2' | ||
p3_annotations = get_annotations pdf, 3 | ||
first_steps_ref = p3_annotations[0] | ||
(expect first_steps_ref[:Subtype]).to eql :Link | ||
(expect first_steps_ref[:Dest]).to eql '_first_steps' | ||
end | ||
end | ||
end |