pike.git
/
lib
/
modules
/
Tools.pmod
/
Standalone.pmod
/
autodoc_to_html.pike
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/lib/modules/Tools.pmod/Standalone.pmod/autodoc_to_html.pike:1568:
string ret = ""; foreach(n->get_elements(tag), Node c) ret += cb(c, @args); return ret; } string manual_title = "Pike Reference Manual"; string frame_html(string res, void|string title) { title = title || manual_title;
-
return "<html><head><title>" + quote(title) + "</title></head>\n"
+
return "<html><head><title>" + quote(title) + "</title>
\n"
+
"
<
meta charset='utf-8'
/
></
head>\n"
"<body bgcolor='white' text='black'>\n" + res + "</body></html>"; } string layout_toploop(Node n, Git.Export|void exporter) { string res = ""; foreach(n->get_elements(), Node c) switch(c->get_any_name()) { case "dir":
pike.git/lib/modules/Tools.pmod/Standalone.pmod/autodoc_to_html.pike:1602:
cd(cwd); break; case "file": if (verbosity >= Tools.AutoDoc.FLAG_VERBOSE) { werror("\t%s\n", c->get_attributes()->name); } if (exporter) { string html = frame_html(layout_toploop(c)); exporter->filemodify(Git.MODE_FILE, c->get_attributes()->name);
-
exporter->data(html);
+
exporter->data(
string_to_utf8(
html)
)
;
break; } if(dest_path) { cwd=getcwd(); cd(dest_path); } Stdio.write_file( c->get_attributes()->name,
-
frame_html(layout_toploop(c)) );
+
string_to_utf8(
frame_html(layout_toploop(c))
)
);
if(cwd) cd(cwd); break; case "appendix": if (!(flags & Tools.AutoDoc.FLAG_COMPAT)) { error("Appendices are only supported in compat mode.\n"); } res += parse_appendix(c); break;