mirror of
				https://github.com/alecthomas/chroma.git
				synced 2025-10-30 23:57:49 +02:00 
			
		
		
		
	Merge pull request #57 from kenshaw/add-ordering-to-styles-formatters
Fix order output of chroma cli tool
This commit is contained in:
		| @@ -198,12 +198,12 @@ func listAll() { | |||||||
| 	} | 	} | ||||||
| 	fmt.Println() | 	fmt.Println() | ||||||
| 	fmt.Printf("styles:") | 	fmt.Printf("styles:") | ||||||
| 	for name := range styles.Registry { | 	for _, name := range styles.Names() { | ||||||
| 		fmt.Printf(" %s", name) | 		fmt.Printf(" %s", name) | ||||||
| 	} | 	} | ||||||
| 	fmt.Println() | 	fmt.Println() | ||||||
| 	fmt.Printf("formatters:") | 	fmt.Printf("formatters:") | ||||||
| 	for name := range formatters.Registry { | 	for _, name := range formatters.Names() { | ||||||
| 		fmt.Printf(" %s", name) | 		fmt.Printf(" %s", name) | ||||||
| 	} | 	} | ||||||
| 	fmt.Println() | 	fmt.Println() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user