nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dd1020
)
src/htmlight: if no infofox but a href, insert a link the the HTML
author
Jean Privat
<jean@pryen.org>
Thu, 31 May 2018 15:33:42 +0000
(11:33 -0400)
committer
Jean Privat
<jean@pryen.org>
Thu, 31 May 2018 15:33:42 +0000
(11:33 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>
src/htmlight.nit
patch
|
blob
|
history
diff --git
a/src/htmlight.nit
b/src/htmlight.nit
index
dc8cb21
..
9668a83
100644
(file)
--- a/
src/htmlight.nit
+++ b/
src/htmlight.nit
@@
-126,6
+126,14
@@
class HtmlightVisitor
end
end
if infobox != null and not show_infobox then
+ var href = infobox.href
+ if href != null then
+ # If there is an href, we inject a link around
+ var tag2 = new HTMLTag("a")
+ tag2.add tag
+ tag = tag2
+ tag.attr("href", href)
+ end
tag.attr("title", infobox.title)
tag.classes.add "titled"
infobox = null