mirror of
https://github.com/gigablast/open-source-search-engine.git
synced 2024-10-04 20:27:43 +03:00
only show h1tag if there
This commit is contained in:
parent
81a89f5975
commit
183191520f
@ -3430,7 +3430,7 @@ bool printResult ( State0 *st, long ix , long *numPrintedSoFar ) {
|
||||
//
|
||||
// print <h1> tag contents. hack for client.
|
||||
//
|
||||
if ( mr->ptr_htag && mr->size_htag ) {
|
||||
if ( mr->ptr_htag && mr->size_htag > 1 ) {
|
||||
if ( si->m_format == FORMAT_XML ) {
|
||||
sb->safePrintf("\t\t<h1Tag><![CDATA[");
|
||||
sb->cdataEncode(mr->ptr_htag);
|
||||
|
Loading…
Reference in New Issue
Block a user