mirror of
				https://github.com/open-webui/open-webui
				synced 2025-06-26 18:26:48 +00:00 
			
		
		
		
	solves the lack of line breaks in chat download as pdf #8405
This commit is contained in:
		
							parent
							
								
									1dfb479d36
								
							
						
					
					
						commit
						882d8f4ce1
					
				@ -53,6 +53,7 @@ class PDFGenerator:
 | 
			
		||||
        # - https://facelessuser.github.io/pymdown-extensions/usage_notes/
 | 
			
		||||
        # html_content = markdown(content, extensions=["pymdownx.extra"])
 | 
			
		||||
 | 
			
		||||
        content = content.replace("\n", "<br/>")
 | 
			
		||||
        html_message = f"""
 | 
			
		||||
            <div>
 | 
			
		||||
                <div>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user