Changed spaces settings - both swiched with neither and left with right.
This commit is contained in:
		
							parent
							
								
									c63a9d47da
								
							
						
					
					
						commit
						dd5fa4a1b8
					
				@ -139,13 +139,13 @@ class SpaceRegex:
 | 
			
		||||
 | 
			
		||||
    def __call__(self, word):
 | 
			
		||||
        match = False
 | 
			
		||||
        if 'both' in self.space:
 | 
			
		||||
            match = match or (word.previous_glue != '' and word.glue != '')
 | 
			
		||||
        if 'right' in self.space:
 | 
			
		||||
            match = match or (word.previous_glue == '' and word.glue != '')
 | 
			
		||||
        if 'left' in self.space:
 | 
			
		||||
            match = match or (word.previous_glue != '' and word.glue == '')
 | 
			
		||||
        if 'neither' in self.space:
 | 
			
		||||
            match = match or (word.previous_glue != '' and word.glue != '')
 | 
			
		||||
        if 'left' in self.space:
 | 
			
		||||
            match = match or (word.previous_glue == '' and word.glue != '')
 | 
			
		||||
        if 'right' in self.space:
 | 
			
		||||
            match = match or (word.previous_glue != '' and word.glue == '')
 | 
			
		||||
        if 'both' in self.space:
 | 
			
		||||
            match = match or (word.previous_glue == '' and word.glue == '')
 | 
			
		||||
 | 
			
		||||
        return match
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user