mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	small fixes
This commit is contained in:
		| @@ -55,7 +55,9 @@ async function addClipping(req) { | ||||
|  | ||||
|     const rewrittenContent = await addImagesToNote(images, clippingNote, content); | ||||
|  | ||||
|     await clippingNote.setContent(await clippingNote.getContent() + '<p>' + rewrittenContent + '</p>'); | ||||
|     const existingContent = await clippingNote.getContent(); | ||||
|  | ||||
|     await clippingNote.setContent(existingContent + (existingContent.trim() ? "<br/>" : "") + rewrittenContent); | ||||
|  | ||||
|     return { | ||||
|         noteId: clippingNote.noteId | ||||
|   | ||||
		Reference in New Issue
	
	Block a user