if (tokenType == NPARA) {
#if PRINT_TOKEN
wprint_ctoken(stdout);
- #endif
+ #endif /* PRINT_TOKEN */
scanner();
if (target != NULL) {
fputws(L"<p>\n", target);
#if DEBUG
fprintf(stdout, "entering %s\n", __func__);
#endif
- if (tokenType == MOTCLE) {
- //FIXME: Check if the MOTCLE token value is set to >Titre
+ if (tokenType == MOTCLE && wcscmp(L">Titre", (const wchar_t*)tokenValue) == 0) {
if (target != NULL) {
fputws(L"<title>\n", target);
fputws(L" ", target);
if (target != NULL) {
fputws(L"\n</title>\n", target);
}
- if (tokenType == MOTCLE) {
+ if (tokenType == MOTCLE && wcscmp(L">Auteur", (const wchar_t*)tokenValue) == 0) {
#if PRINT_TOKEN
wprint_ctoken(stdout);
#endif /* PRINT_TOKEN */
scanner();
- //The text contain the author
fputws(L"<meta name=\"author\" content=\"", target);
analyze_TEXT();
fputws(L"\">", target);