Disable auto-aligning tables when Emacs loads Org-mode.
Emacs will auto-align tables when org-mode is loaded if the document contains "#+STARTUP: align". Since Organic is just a parser, it has no business editing the input it receives so we are disabling this auto-align in Emacs to make the tests work properly.
This commit is contained in:
		
							parent
							
								
									925c42c8fb
								
							
						
					
					
						commit
						b8a4876779
					
				| @ -11,6 +11,8 @@ where | ||||
|     let elisp_script = format!( | ||||
|         r#"(progn
 | ||||
|      (erase-buffer) | ||||
|      (require 'org) | ||||
|      (defun org-table-align () t) | ||||
|      (insert "{escaped_file_contents}") | ||||
|      (org-mode) | ||||
|      (message "%s" (pp-to-string (org-element-parse-buffer))) | ||||
| @ -42,6 +44,8 @@ where | ||||
|     ))?; | ||||
|     let elisp_script = format!( | ||||
|         r#"(progn
 | ||||
|      (require 'org) | ||||
|      (defun org-table-align () t) | ||||
|      (org-mode) | ||||
|      (message "%s" (pp-to-string (org-element-parse-buffer))) | ||||
| )"#
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Tom Alexander
						Tom Alexander