Skip to content
Snippets Groups Projects
Commit e1081bf0 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Now sets title in windex.

Rev: tutorial/manpages:1.5
parent a0370fee
No related branches found
No related tags found
No related merge requests found
...@@ -103,7 +103,13 @@ void make_page(string base, TAG tag, string ind, string fbase) ...@@ -103,7 +103,13 @@ void make_page(string base, TAG tag, string ind, string fbase)
return u+"/"+s+"."+base; return u+"/"+s+"."+base;
},fbase,globalbase+base,base); },fbase,globalbase+base,base);
sscanf(outfiles[0],"%*s/man%*s/%s.%*s",q); sscanf(outfiles[0],"%*s/man%*s/%s",q);
if (q) {
array(string) a = q/".";
if (sizeof(a) > 1) {
q = a[..sizeof(a)-2]*".";
}
}
werror("files: "+outfiles*", "+"\n"); werror("files: "+outfiles*", "+"\n");
...@@ -138,7 +144,8 @@ void make_page(string base, TAG tag, string ind, string fbase) ...@@ -138,7 +144,8 @@ void make_page(string base, TAG tag, string ind, string fbase)
foreach (({q})+names,string s) foreach (({q})+names,string s)
windex->write(sprintf("%-15s %-15s - %s\n", windex->write(sprintf("%-15s %-15s - %s\n",
s,q+" ("+obase+")",names*", ")); s,q+" ("+obase+")",
tag->params->title || (names*", ")));
} }
void make_pages(string base, SGML data, string ind, string fbase) void make_pages(string base, SGML data, string ind, string fbase)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment