From 02c9c58c6d5f69f2009a7e13ee90dd3d5dbe895b Mon Sep 17 00:00:00 2001 From: "Suraj N. Kurapati" Date: Sun, 24 Jan 2016 16:53:57 -0800 Subject: [PATCH] URI fragments for Erlang and Elixir work as-is now --- bin/dasht-query-line | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/bin/dasht-query-line b/bin/dasht-query-line index 5437ac5..01619ef 100755 --- a/bin/dasht-query-line +++ b/bin/dasht-query-line @@ -48,26 +48,12 @@ dasht-docsets "$@" | while read docset; do # indicate the source of this result print "from = " docset - # URI fragments are sometimes wrong - # or entirely missing; fix them here - + # skip navigation links in CSS docset + # when URI fragment is not available if (docset ~ /^CSS/ && $3 !~ "#.+") { $3 = $3 "#wiki-content" } - if (docset ~ /^Erlang|^Elixir/) { - sub("#//apple_ref/[^/]+/", "#", $3) - } - - if (docset ~ /^Erlang/) { - gsub("%2F", "-", $3) - gsub("%5F", "_", $3) - } - - if (docset ~ /^Elixir/) { - gsub("%2F", "/", $3) - } - # resolve URL to filesystem location $3 = file_url $3 }