Previously the expression only searched for anchors with a name attribute,
but doxygen 1.7.1 is producing anchors with the id attribute instead. The
sed expression allows both cases for compatibility.

I also used single quotes for the sed expression  to avoid escaping
double quotes.
---
 share/functions/help.fish |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/share/functions/help.fish b/share/functions/help.fish
index bd53600..9531c10 100644
--- a/share/functions/help.fish
+++ b/share/functions/help.fish
@@ -86,7 +86,7 @@ function help --description "Show help for the fish shell"
                # documentation.  It's a bit of a hack, since it relies on the
                # Doxygen markup format to never change.
 
-               case (sed -n < $__fish_help_dir/commands.html -e "s/.*<h2><a 
class=\"anchor\" name=\"\([^\"]*\)\">.*/\1/p")
+               case (sed -n 's/.*<h2><a class="anchor" 
\(id\|name\)="\([^"]*\)">.*/\2/p' $__fish_help_dir/commands.html)
                        set fish_help_page "commands.html\#$fish_help_item"
                case $help_topics
                        set fish_help_page "index.html\#$fish_help_item"
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to