Subversion Repositories wimsdev

Rev

Rev 17170 | Rev 17918 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 17170 Rev 17442
Line 28... Line 28...
28
  if(compare(p,numerical,0)==0) _skip_contents(isif); /* skip if false */
28
  if(compare(p,numerical,0)==0) _skip_contents(isif); /* skip if false */
29
  else if(!isif) m_file.for_idx++;
29
  else if(!isif) m_file.for_idx++;
30
  return;
30
  return;
31
}
31
}
32
 
32
 
33
    /* 'if' non-numerical (unless comparisons are < or >, etc.) */
33
/* 'if' non-numerical (unless comparisons are < or >, etc.) */
34
void exec_if(char *p)
34
void exec_if(char *p)
35
{
35
{
36
   _exec_if_while(p,0,1);
36
  _exec_if_while(p,0,1);
37
}
37
}
38
 
38
 
39
/* 'if' numerical. */
39
/* 'if' numerical. */
40
void exec_ifval(char *p)
40
void exec_ifval(char *p)
41
{
41
{
Line 1244... Line 1244...
1244
      snprintf(altbuf,sizeof(altbuf)," alt=\"\"");
1244
      snprintf(altbuf,sizeof(altbuf)," alt=\"\"");
1245
    else
1245
    else
1246
      snprintf(altbuf,sizeof(altbuf)," alt=\"%s\"",ins_alt);
1246
      snprintf(altbuf,sizeof(altbuf)," alt=\"%s\"",ins_alt);
1247
  if(strcasecmp(tag,"form")!=0) {
1247
  if(strcasecmp(tag,"form")!=0) {
1248
    snprintf(outbuf+strlen(outbuf),sizeof(outbuf)-strlen(outbuf),
1248
    snprintf(outbuf+strlen(outbuf),sizeof(outbuf)-strlen(outbuf),
1249
       "<img src=\"%s\" style=\"border:solid;border-width:%dpx;margin-bottom:%dpx;%s\" %s %s>",
1249
       "<img src=\"%s\" class=\"wims_mathimg\" style=\"border-width:%dpx;margin-bottom:%dpx;%s\" %s %s>",
1250
       url, border, vspace, buf2, at, altbuf);
1250
       url, border, vspace, buf2, at, altbuf);
1251
  }
1251
  }
1252
  else {
1252
  else {
1253
    char *n, *nend;
1253
    char *n, *nend;
1254
/* fix: add quotes at name=" " */
1254
/* fix: add quotes at name=" " */