Fix parsing of list item lines
According to section 5.5.2 of the Gemini specification (v0.16.1), the space is mandatory.
This commit is contained in:
		
							parent
							
								
									353416685a
								
							
						
					
					
						commit
						8c0af18617
					
				
							
								
								
									
										2
									
								
								text.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								text.go
									
									
									
									
									
								
							@ -126,7 +126,7 @@ func ParseLines(r io.Reader, handler func(Line)) error {
 | 
				
			|||||||
				line = LineLink{url, name}
 | 
									line = LineLink{url, name}
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		} else if strings.HasPrefix(text, "* ") {
 | 
							} else if strings.HasPrefix(text, "* ") {
 | 
				
			||||||
			text = text[1:]
 | 
								text = text[2:]
 | 
				
			||||||
			text = strings.TrimLeft(text, spacetab)
 | 
								text = strings.TrimLeft(text, spacetab)
 | 
				
			||||||
			line = LineListItem(text)
 | 
								line = LineListItem(text)
 | 
				
			||||||
		} else if strings.HasPrefix(text, "###") {
 | 
							} else if strings.HasPrefix(text, "###") {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user