mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 19:49:01 +01:00 
			
		
		
		
	pretty print JSON into note content
This commit is contained in:
		
							parent
							
								
									7c404f03db
								
							
						
					
					
						commit
						c8e01d6cce
					
				| @ -106,7 +106,7 @@ class Note extends Entity { | |||||||
| 
 | 
 | ||||||
|     /** @returns {Promise} */ |     /** @returns {Promise} */ | ||||||
|     async setJsonContent(content) { |     async setJsonContent(content) { | ||||||
|         await this.setContent(JSON.stringify(content)); |         await this.setContent(JSON.stringify(content, null, '\t')); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     /** @returns {boolean} true if this note is the root of the note tree. Root note has "root" noteId */ |     /** @returns {boolean} true if this note is the root of the note tree. Root note has "root" noteId */ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam