Fix #29, commands smí nic nevrátit.
This commit is contained in:
		
							parent
							
								
									b0f4ad71d0
								
							
						
					
					
						commit
						d4eb343fa6
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -477,7 +477,7 @@ class TransformProcessor: | ||||||
| 		if not self.context.get_command(e.attributes["c"]): | 		if not self.context.get_command(e.attributes["c"]): | ||||||
| 			raise NameError(f"Command not defined '{e.attributes['c']}'.") | 			raise NameError(f"Command not defined '{e.attributes['c']}'.") | ||||||
| 		command_output = self.context.get_command(e.attributes["c"])(e, self.context) | 		command_output = self.context.get_command(e.attributes["c"])(e, self.context) | ||||||
| 		e = e.replaceSelf(*command_output) | 		e = e.replaceSelf(*([] if command_output is None else command_output)) | ||||||
| 		return self.transform(e) | 		return self.transform(e) | ||||||
| 
 | 
 | ||||||
| 	def transform_InlineCommand(self, e: InlineCommand) -> Span: | 	def transform_InlineCommand(self, e: InlineCommand) -> Span: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue