Differences From Artifact [edaaa322e4]:
- File src/search.c — part of check-in [7fbc1c3a1f] at 2015-03-09 08:58:13 on branch trunk — Eliminate some unnecessary end-of-line spacing (user: jan.nijtmans size: 53924) [more...]
To Artifact [3f47dd6d07]:
- File src/search.c — part of check-in [9b8d2dcb9f] at 2015-04-03 01:44:21 on branch trunk — Fix search result title handling for 'documents' that are not wiki, markdown, or HTML. (user: mistachkin size: 53956) [more...]
| ︙ | |||
1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 | 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 | + |
html_to_plaintext(blob_str(&html), pOut);
}else if( fossil_strcmp(zMimetype,"text/html")==0 ){
if( doc_is_embedded_html(pIn, &title) ){
blob_appendf(pOut, "%s\n", blob_str(&title));
}
html_to_plaintext(blob_str(pIn), pOut);
}else{
blob_append(pOut, "\n", 1);
blob_append(pOut, blob_buffer(pIn), blob_size(pIn));
}
blob_reset(&html);
blob_reset(&title);
}
/*
|
| ︙ |