From a88855655479f058a83b6b7c3361a43a6d4b91a1 Mon Sep 17 00:00:00 2001 From: Sven Gehring Date: Fri, 14 Jul 2017 14:45:33 +0200 Subject: [PATCH] Add unencoded link target for functions with special chars --- lib/ex_doc/formatter/html/templates.ex | 4 ++++ lib/ex_doc/formatter/html/templates/detail_template.eex | 3 +++ 2 files changed, 7 insertions(+) diff --git a/lib/ex_doc/formatter/html/templates.ex b/lib/ex_doc/formatter/html/templates.ex index 2fc7f4b45..784ec269a 100644 --- a/lib/ex_doc/formatter/html/templates.ex +++ b/lib/ex_doc/formatter/html/templates.ex @@ -120,6 +120,10 @@ defmodule ExDoc.Formatter.HTML.Templates do |> h() end + defp is_enc?(binary) do + h(binary) != enc_h(binary) + end + @doc """ Create a JS object which holds all the items displayed in the sidebar area """ diff --git a/lib/ex_doc/formatter/html/templates/detail_template.eex b/lib/ex_doc/formatter/html/templates/detail_template.eex index c038a50c0..ec5b77b7c 100644 --- a/lib/ex_doc/formatter/html/templates/detail_template.eex +++ b/lib/ex_doc/formatter/html/templates/detail_template.eex @@ -1,4 +1,7 @@