202 |
STATIC_STRBUF(sb); |
STATIC_STRBUF(sb); |
203 |
char *dir = subdir ? "../" : ""; |
char *dir = subdir ? "../" : ""; |
204 |
|
|
205 |
strbuf_init(sb); |
strbuf_clear(sb); |
206 |
if (enable_xhtml) { |
if (enable_xhtml) { |
207 |
strbuf_puts(sb, "<?xml version='1.0' encoding='ISO-8859-1'?>\n"); |
strbuf_puts(sb, "<?xml version='1.0' encoding='ISO-8859-1'?>\n"); |
208 |
strbuf_sprintf(sb, "<?xml-stylesheet type='text/css' href='%sstyle.css'?>\n", dir); |
strbuf_sprintf(sb, "<?xml-stylesheet type='text/css' href='%sstyle.css'?>\n", dir); |
309 |
{ |
{ |
310 |
STATIC_STRBUF(sb); |
STATIC_STRBUF(sb); |
311 |
|
|
312 |
strbuf_init(sb); |
strbuf_clear(sb); |
313 |
/* |
/* |
314 |
* Construct URL. |
* Construct URL. |
315 |
* href='dir/file.suffix#key' |
* href='dir/file.suffix#key' |
423 |
char *p, *filename, *fid; |
char *p, *filename, *fid; |
424 |
SPLIT ptable; |
SPLIT ptable; |
425 |
|
|
426 |
strbuf_init(sb); |
strbuf_clear(sb); |
427 |
if (split(string, 4, &ptable) < 4) { |
if (split(string, 4, &ptable) < 4) { |
428 |
recover(&ptable); |
recover(&ptable); |
429 |
die("too small number of parts in list_body().\n'%s'", string); |
die("too small number of parts in list_body().\n'%s'", string); |
544 |
{ |
{ |
545 |
STATIC_STRBUF(sb); |
STATIC_STRBUF(sb); |
546 |
|
|
547 |
strbuf_init(sb); |
strbuf_clear(sb); |
548 |
strbuf_sprintf(sb, "<form method='get' action='%s'", action); |
strbuf_sprintf(sb, "<form method='get' action='%s'", action); |
549 |
if (target) |
if (target) |
550 |
strbuf_sprintf(sb, " target='%s'", target); |
strbuf_sprintf(sb, " target='%s'", target); |
606 |
{ |
{ |
607 |
STATIC_STRBUF(sb); |
STATIC_STRBUF(sb); |
608 |
|
|
609 |
strbuf_init(sb); |
strbuf_clear(sb); |
610 |
strbuf_puts(sb, "<input"); |
strbuf_puts(sb, "<input"); |
611 |
if (type) |
if (type) |
612 |
strbuf_sprintf(sb, " type='%s'", type); |
strbuf_sprintf(sb, " type='%s'", type); |
655 |
{ |
{ |
656 |
STATIC_STRBUF(sb); |
STATIC_STRBUF(sb); |
657 |
|
|
658 |
strbuf_init(sb); |
strbuf_clear(sb); |
659 |
strbuf_sprintf(sb, "<frame name='%s' id='%s' src='%s'%s>", name, name, src, empty_element); |
strbuf_sprintf(sb, "<frame name='%s' id='%s' src='%s'%s>", name, name, src, empty_element); |
660 |
return strbuf_value(sb); |
return strbuf_value(sb); |
661 |
} |
} |