pike.git / bin / mkxml.pike

version» Context lines:

pike.git/bin/mkxml.pike:1: - /* $Id: mkxml.pike,v 1.3 2001/05/05 19:23:09 mirar Exp $ */ + /* $Id: mkxml.pike,v 1.4 2001/05/05 20:38:48 mirar Exp $ */      import Stdio;   import Array;      mapping parse=([]);   int illustration_counter;      mapping manpage_suffix=   ([    "Image":"i",
pike.git/bin/mkxml.pike:303:    sscanf(t,"%s<illustration%s>%s</illustration>%s",t,q,u,v)==4)    {    s+=replace(t,"\n\n","\n\n<p>")+    "<illustration __from__='"+where+"' src=image_ill.pnm"+q+">\n"    +replace(u,"lena()","src")+"</illustration>";    t=v;    }    else if (b[..2]=="pre" &&    sscanf(t,"%s<pre%s>%s</pre>%s",t,q,u,v)==4)    { +  werror("%O\n",u);    s+=replace(t,"\n\n","\n\n<p>")+    "<pre"+q+">\n"+u+"</pre>";    t=v;    }    else    {    s+=replace(a,"\n\n","\n\n<p>")+"<"+b+">";    t=c;    }    }
pike.git/bin/mkxml.pike:900:    stderr->write("mkwmml: "+    currentfile+" line "+line+    ": illegal description position\n");    return 1;    }    if (!descM->desc) descM->desc="";    else descM->desc+="\n";    d=getridoftabs(d);    descM->desc+=d;    } +  else +  { +  if (!descM->desc) descM->desc=""; +  else descM->desc+="\n";    }    } -  +  }      // stderr->write(sprintf("%O",parse));       stderr->write("mkwmml: making docs...\n\n");       make_doc_files();       return 0;   }