aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergio Carlavilla Delgado <carlavilla@FreeBSD.org>2022-12-07 18:22:10 +0000
committerSergio Carlavilla Delgado <carlavilla@FreeBSD.org>2022-12-07 18:22:10 +0000
commit22d9c0d697157330d9d6298eaf0ee27659fe30d0 (patch)
treeb68d3fa4fb4695b0209c1c1688429aaac1b15116
parent9d9ef9f9d35bdc89b26a8aaa310efd6adeec1ff0 (diff)
downloaddoc-22d9c0d697157330d9d6298eaf0ee27659fe30d0.tar.gz
doc-22d9c0d697157330d9d6298eaf0ee27659fe30d0.zip
Fix link references in single book
PR: 262661 Submitted by: grahamperrin@
-rw-r--r--shared/lib/InterDocumentReferencesMacro/extension.rb6
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