Skip to content
Snippets Groups Projects
Select Git revision
  • 060c50a639c6607e84a57894378c16cd741010dc
  • master default protected
  • 9.0
  • 8.0
  • nt-tools
  • 7.8
  • 7.6
  • 7.4
  • 7.2
  • 7.0
  • 0.6
  • rosuav/latex-markdown-renderer
  • rxnpatch/rxnpatch
  • marcus/gobject-introspection
  • rxnpatch/8.0
  • rosuav/pre-listening-ports
  • rosuav/async-annotations
  • rosuav/pgsql-ssl
  • rxnpatch/rxnpatch-broken/2023-10-06T094250
  • grubba/fdlib
  • grubba/wip/sakura/8.0
  • v8.0.2020
  • v8.0.2018
  • v8.0.2016
  • v8.0.2014
  • v8.0.2012
  • v8.0.2008
  • v8.0.2006
  • v8.0.2004
  • v8.0.2002
  • v8.0.2000
  • v8.0.1998
  • v8.0.1996
  • v8.0.1994
  • v8.0.1992
  • v8.0.1990
  • v8.0.1988
  • v8.0.1986
  • rxnpatch/clusters/8.0/2025-04-29T124414
  • rxnpatch/2025-04-29T124414
  • v8.0.1984
41 results

html_section_pages.pike

Blame
  • html_section_pages.pike 513 B
    #include "types.h"
    #if __VERSION__ >= 0.6
    import ".";
    #endif /* __VERSION__ >= 0.6 */
    inherit "html.pike";
    
    
    SGML split_tag(TAG t, TAG t2)
    {
      switch(t2->tag)
      {
        case "section":
          t2->data=low_split(t2->data);
          sections[t2->params->number]=({t});
          return ({
    	Sgml.Tag("h3",0,0,({
    	  Sgml.Tag("link",(["to":t2->params->number]),0,
    		   ({
    		     sprintf("%s %s",
    			     t2->params->number,
    			     (string) t2->params->title),
    		       }) ),
    	    }) )
    	  });
      }
      return ::split_tag(t,t2);
    }