Bump reflow to v0.3.0

reflow v0.3.0 no longer outputs duplicate `ESC[0m` sequences,
hence the testdata needed to be regenerated.
This commit is contained in:
Anthony Fok
2021-09-06 20:03:30 +02:00
committed by Christian Muehlhaeuser
parent e9eb51845e
commit ea285ca64f
19 changed files with 78 additions and 72 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ go 1.13
require (
github.com/alecthomas/chroma v0.8.2
github.com/microcosm-cc/bluemonday v1.0.6
github.com/muesli/reflow v0.2.0
github.com/muesli/reflow v0.3.0
github.com/muesli/termenv v0.8.1
github.com/olekukonko/tablewriter v0.0.5
github.com/yuin/goldmark v1.3.3
+6
View File
@@ -26,10 +26,14 @@ github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Ky
github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
github.com/mattn/go-runewidth v0.0.10 h1:CoZ3S2P7pvtP45xOtBw+/mDL2z0RKI576gSkzRRpdGg=
github.com/mattn/go-runewidth v0.0.10/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk=
github.com/mattn/go-runewidth v0.0.12 h1:Y41i/hVW3Pgwr8gV+J23B9YEY0zxjptBuCWEaxmAOow=
github.com/mattn/go-runewidth v0.0.12/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk=
github.com/microcosm-cc/bluemonday v1.0.6 h1:ZOvqHKtnx0fUpnbQm3m3zKFWE+DRC+XB1onh8JoEObE=
github.com/microcosm-cc/bluemonday v1.0.6/go.mod h1:HOT/6NaBlR0f9XlxD3zolN6Z3N8Lp4pvhp+jLS5ihnI=
github.com/muesli/reflow v0.2.0 h1:2o0UBJPHHH4fa2GCXU4Rg4DwOtWPMekCeyc5EWbAQp0=
github.com/muesli/reflow v0.2.0/go.mod h1:qT22vjVmM9MIUeLgsVYe/Ye7eZlbv9dZjL3dVhUqLX8=
github.com/muesli/reflow v0.3.0 h1:IFsN6K9NfGtjeggFP+68I4chLZV2yIKsXJFNZ+eWh6s=
github.com/muesli/reflow v0.3.0/go.mod h1:pbwTDkVPibjO2kyvBQRBxTWEEGDGq0FlB1BIKtnHY/8=
github.com/muesli/termenv v0.8.1 h1:9q230czSP3DHVpkaPDXGp0TOfAwyjyYwXlUCQxQSaBk=
github.com/muesli/termenv v0.8.1/go.mod h1:kzt/D/4a88RoheZmwfqorY3A+tnsSMA9HJC/fQSFKo0=
github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec=
@@ -40,6 +44,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/rivo/uniseg v0.1.0 h1:+2KBaVoUmb9XzDsrx/Ct0W/EYOSFf/nWTauy++DprtY=
github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/sergi/go-diff v1.0.0 h1:Kpca3qRNrduNnOQeazBd0ysaKrUJiIuISHxogkT9RPQ=
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+2 -2
View File
@@ -1,3 +1,3 @@
=> First line of quote                                                            
=> Second line                                                                    
=> First line of quote                                                            
=> Second line                                                                    
+1 -1
View File
@@ -1 +1 @@
This is a code. 
This is a code.
+1 -1
View File
@@ -1 +1 @@
This text is emphasized. 
This text is emphasized.
+2 -2
View File
@@ -1,3 +1,3 @@
1. First Item                                                                   
2. Second Item                                                                  
1. First Item                                                                   
2. Second Item                                                                  
+3 -3
View File
@@ -1,3 +1,3 @@
 => h1 <= 
 ## h2 
 ### h3
 => h1 <=
 ## h2
 ### h3
+1 -1
View File
@@ -1 +1 @@
Image [Image: https://charm.sh/logo.png]. 
Image [Image: https://charm.sh/logo.png].
+4 -4
View File
@@ -1,6 +1,6 @@
 If you want to make a more significant change, please first open an issue   
 https://github.com/twpayne/chezmoi/issues/new to discuss the change that you
 want to make. Dave Cheney gives a good rationale                            
 https://dave.cheney.net/2019/02/18/talk-then-code as to why this is important.
 If you want to make a more significant change, please first open an issue   
 https://github.com/twpayne/chezmoi/issues/new to discuss the change that you
 want to make. Dave Cheney gives a good rationale                            
 https://dave.cheney.net/2019/02/18/talk-then-code as to why this is important.
+7 -7
View File
@@ -1,10 +1,10 @@
                                                                            
 • Getting started                                                           
 • Developing locally                                                        
 • Documentation changes                                                     
 • Contributing changes                                                      
 • Managing releases                                                         
 • Packaging                                                                 
 • Updating the website                                                      
 • Getting started                                                           
 • Developing locally                                                        
 • Documentation changes                                                     
 • Contributing changes                                                      
 • Managing releases                                                         
 • Packaging                                                                 
 • Updating the website                                                      
+3 -3
View File
@@ -1,6 +1,6 @@
                                                                            
 • Navigation                                                                
   • Familiar shortcuts (arrows, ~, -, @), quick reference                   
                                                                             
 • Navigation                                                                
   • Familiar shortcuts (arrows, ~, -, @), quick reference                   
                                                                             
+1 -1
View File
@@ -1,3 +1,3 @@
 Example:  <some directory>                                                  
 Example:  <some directory>                                                  
+12 -12
View File
@@ -1,17 +1,17 @@
 emoji in text                                                               
                                                                             
 🐙 ⚡ 🐱 = ❤️                                                               
                                                                             
 emoji in header                                                             
 emoji in text                                                               
                                                                            
 🐙 ⚡ 🐱 = ❤️                                                               
                                                                            
 emoji in header                                                             
                                                                             
 ## 🐙 ⚡ 🐱 = ❤️                                                            
                                                                             
 no emoji in code blocks                                                     
                                                                             
                                                                             
 no emoji in code blocks                                                     
                                                                            
   :octopus: :zap: :cat: = :heart:                                           
                                                                             
 no emoji in inline code                                                     
                                                                             
  :octopus: :zap: :cat: = :heart:                                            
                                                                             
 no emoji in inline code                                                     
                                                                            
  :octopus: :zap: :cat: = :heart:                                            
+1 -1
View File
@@ -1 +1 @@
This is a link (https://charm.sh). 
This is a link (https://charm.sh).
+3 -3
View File
@@ -1,4 +1,4 @@
• First Item                                                                    
    • Nested List Item                                                          
• Second Item                                                                   
• First Item                                                                    
    • Nested List Item                                                          
• Second Item                                                                   
+26 -26
View File
@@ -1,40 +1,40 @@
  Gold                                                                       
                                                                             
 Render markdown on the CLI, with pizzazz!                                   
                                                                             
 Render markdown on the CLI, with pizzazz!                                   
                                                                             
 ## What is it?                                                              
                                                                             
 Gold is a Golang library that allows you to use JSON based stylesheets to   
 render Markdown files in the terminal. Just like CSS, you can define color  
 and style attributes on Markdown elements. The difference is that you use   
 ANSI color and terminal codes instead of CSS properties and hex colors.     
                                                                             
 Gold is a Golang library that allows you to use JSON based stylesheets to   
 render Markdown files in the terminal. Just like CSS, you can define color  
 and style attributes on Markdown elements. The difference is that you use   
 ANSI color and terminal codes instead of CSS properties and hex colors.     
                                                                             
 ## Usage                                                                    
                                                                             
 See cmd/gold /cmd/gold/.                                                    
                                                                             
 See cmd/gold /cmd/gold/.                                                    
                                                                             
 ## Example Output                                                           
                                                                             
 Image: Gold Dark Style →                                                    
 https://github.com/charmbracelet/gold/raw/master/styles/gallery/dark.png    
                                                                             
 Check out the Gold Style Gallery                                            
 https://github.com/charmbracelet/gold/blob/master/styles/gallery/README.md! 
                                                                             
 Image: Gold Dark Style →                                                    
 https://github.com/charmbracelet/gold/raw/master/styles/gallery/dark.png    
                                                                            
 Check out the Gold Style Gallery                                            
 https://github.com/charmbracelet/gold/blob/master/styles/gallery/README.md! 
                                                                             
 ## Colors                                                                   
                                                                             
 Currently  gold  uses the Aurora ANSI colors                                
 https://godoc.org/github.com/logrusorgru/aurora#Index.                      
                                                                             
 Currently  gold  uses the Aurora ANSI colors                                
 https://godoc.org/github.com/logrusorgru/aurora#Index.                      
                                                                             
 ## Development                                                              
                                                                             
 Style definitions located in  styles/  can be embedded into the binary by   
 running statik https://github.com/rakyll/statik:                            
                                                                             
                                                                             
 Style definitions located in  styles/  can be embedded into the binary by   
 running statik https://github.com/rakyll/statik:                            
                                                                            
   statik -f -src styles -include "*.json"                                   
                                                                             
 You can re-generate screenshots of all available styles by running          
 gallery.sh . This requires  termshot  and  pngcrush  installed on your      
 system!                                                                     
                                                                             
 You can re-generate screenshots of all available styles by running          
 gallery.sh . This requires  termshot  and  pngcrush  installed on your      
 system!                                                                     
+1 -1
View File
@@ -1 +1 @@
Scratch this. 
Scratch this.
+1 -1
View File
@@ -1 +1 @@
This text is strong. 
This text is strong.
+2 -2
View File
@@ -1,3 +1,3 @@
✓ Finished Task                                                                 
✗ Outstanding Task                                                              
✓ Finished Task                                                                 
✗ Outstanding Task