a39cf17bd648ebf89f823e6a32ea9edae1ec82b6 kent Wed May 25 15:50:23 2016 -0700 Improving error message. diff --git src/lib/htmlPage.c src/lib/htmlPage.c index 9d13c95..47a7417 100644 --- src/lib/htmlPage.c +++ src/lib/htmlPage.c @@ -1810,31 +1810,31 @@ if (contentType == NULL || startsWith("text/html", contentType)) { /* To simplify things upper case all tag names. */ for (tag = page->tags; tag != NULL; tag = tag->next) touppers(tag->name); checkExactlyOne(page->tags, "BODY"); /* Validate header, and make a suggestion or two */ if ((tag = page->tags) == NULL) errAbort("No tags"); if (!sameWord(tag->name, "HTML")) errAbort("Doesn't start with <HTML> tag"); tag = tag->next; if (tag == NULL || !sameWord(tag->name, "HEAD")) - warn("<HEAD> tag does not follow <HTML> tag"); + warn("<HEAD> tag does not immediately follow <HTML> tag"); else { for (;;) { tag = tag->next; if (tag == NULL) errAbort("Missing </HEAD>"); if (sameWord(tag->name, "TITLE")) gotTitle = TRUE; if (sameWord(tag->name, "/HEAD")) break; } if (!gotTitle) warn("No title in <HEAD>"); validateNestingTags(page, page->tags, tag, headNesters, ArraySize(headNesters));