diff options
author | Sergio Carlavilla Delgado <carlavilla@FreeBSD.org> | 2022-12-07 18:22:10 +0000 |
---|---|---|
committer | Sergio Carlavilla Delgado <carlavilla@FreeBSD.org> | 2022-12-07 18:22:10 +0000 |
commit | 22d9c0d697157330d9d6298eaf0ee27659fe30d0 (patch) | |
tree | b68d3fa4fb4695b0209c1c1688429aaac1b15116 | |
parent | 9d9ef9f9d35bdc89b26a8aaa310efd6adeec1ff0 (diff) | |
download | doc-22d9c0d697157330d9d6298eaf0ee27659fe30d0.tar.gz doc-22d9c0d697157330d9d6298eaf0ee27659fe30d0.zip |
Fix link references in single book
PR: 262661
Submitted by: grahamperrin@
-rw-r--r-- | shared/lib/InterDocumentReferencesMacro/extension.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shared/lib/InterDocumentReferencesMacro/extension.rb b/shared/lib/InterDocumentReferencesMacro/extension.rb index 76e63f4a89..455f63c002 100644 --- a/shared/lib/InterDocumentReferencesMacro/extension.rb +++ b/shared/lib/InterDocumentReferencesMacro/extension.rb @@ -15,14 +15,14 @@ class InterDocumentReferencesMacro < Asciidoctor::Extensions::InlineMacroProcess doc = parent.document - if doc.attributes['book'] == 'True' - if doc.attributes['isonline'] == 1 + if doc.attributes['book'] == "true" + if doc.attributes['isonline'] == "1" (create_anchor parent, text, type: :link, target: %(./##{anchor})).render else (create_anchor parent, text, type: :link, target: %(./index.html##{anchor})).render end else - if doc.attributes['isonline'] == 1 + if doc.attributes['isonline'] == "1" (create_anchor parent, text, type: :link, target: %(../#{destination}/##{anchor})).render else (create_anchor parent, text, type: :link, target: %(../#{destination}/index.html##{anchor})).render |