interpert <br> if newline and markup are allowed
This commit is contained in:
		
							parent
							
								
									f58fc76966
								
							
						
					
					
						commit
						f947bc71d4
					
				| @ -298,6 +298,10 @@ int notification_init(notification * n, int id) | ||||
| 
 | ||||
|         if (!settings.allow_markup) | ||||
|                 n->msg = notification_fix_markup(n->msg); | ||||
|         else if (!settings.ignore_newline) { | ||||
|                 n->msg = string_replace("<br>", "\n", n->msg); | ||||
|                 n->msg = string_replace("<br />", "\n", n->msg); | ||||
|         } | ||||
| 
 | ||||
|         while (strstr(n->msg, "\\n") != NULL) | ||||
|                 n->msg = string_replace("\\n", "\n", n->msg); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 progandy
						progandy