mirror of
https://github.com/tbamud/tbamud.git
synced 2026-03-02 15:31:44 +01:00
updated, non-tested version
This commit is contained in:
@@ -107,13 +107,13 @@ void parse_webster_html(char *arg) {
|
|||||||
q = outline;
|
q = outline;
|
||||||
|
|
||||||
while (*p != '<')
|
while (*p != '<')
|
||||||
q++ = p++;
|
*q++ = p++;
|
||||||
|
|
||||||
if (!strncmp(p, "<td ", 4))
|
if (!strncmp(p, "<td ", 4))
|
||||||
q++ = '\n';
|
*q++ = '\n';
|
||||||
// if it's not a <td> tag, ignore it.
|
// if it's not a <td> tag, ignore it.
|
||||||
|
|
||||||
q++='\0';
|
*q++='\0';
|
||||||
fprintf(outfile, "%s", outline);
|
fprintf(outfile, "%s", outline);
|
||||||
|
|
||||||
if (!strncmp(p, "</table>", 8))
|
if (!strncmp(p, "</table>", 8))
|
||||||
|
|||||||
Reference in New Issue
Block a user