mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 03:29:02 +01:00 
			
		
		
		
	formatting fix/hack
This commit is contained in:
		
							parent
							
								
									63cc208ec7
								
							
						
					
					
						commit
						f20717e29f
					
				| @ -2,6 +2,9 @@ function html2notecase(contents, note) { | |||||||
|     // remove any possible extra newlines which might be inserted - all relevant new lines should be only in <br> and <p>
 |     // remove any possible extra newlines which might be inserted - all relevant new lines should be only in <br> and <p>
 | ||||||
|     contents = contents.replace(/(?:\r\n|\r|\n)/, ''); |     contents = contents.replace(/(?:\r\n|\r|\n)/, ''); | ||||||
| 
 | 
 | ||||||
|  |     // some editors insert this font stuff which messes up parsing by doubling newlines
 | ||||||
|  |     contents = contents.replace(/<font[^>]*>/g, ''); | ||||||
|  |     contents = contents.replace(/<\/font>/g, ''); | ||||||
|     contents = contents.replace(/<br><\/p>/g, '\n'); |     contents = contents.replace(/<br><\/p>/g, '\n'); | ||||||
|     contents = contents.replace(/<p><br><\/p>/g, '\n'); |     contents = contents.replace(/<p><br><\/p>/g, '\n'); | ||||||
|     contents = contents.replace(/<br \/>/g, '\n'); |     contents = contents.replace(/<br \/>/g, '\n'); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 azivner
						azivner