mirror of
				https://github.com/searxng/searxng.git
				synced 2025-11-02 18:47:05 -05:00 
			
		
		
		
	Merge pull request #311 from dalf/fix-pr-302
[fix] searx/results.py: strip result['content'] only if it exists
This commit is contained in:
		
						commit
						76e0f6807c
					
				@ -255,6 +255,7 @@ class ResultContainer:
 | 
			
		||||
            result['url'] = result['parsed_url'].geturl()
 | 
			
		||||
 | 
			
		||||
        # strip multiple spaces and cariage returns from content
 | 
			
		||||
        if result.get('content'):
 | 
			
		||||
            result['content'] = WHITESPACE_REGEX.sub(' ', result['content'])
 | 
			
		||||
 | 
			
		||||
        return True
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user