Lets images be full width

This commit is contained in:
sloum 2020-05-15 22:25:56 -07:00
parent 2bb8272cf9
commit 909131cda8
1 changed files with 1 additions and 1 deletions

View File

@ -66,11 +66,11 @@ func (p *Page) RenderImage(width int) {
// of the Page struct width a string slice
// of the wrapped data
func (p *Page) WrapContent(width int, color bool) {
width = min(width, 100)
if p.FileType == "image" {
p.RenderImage(width)
return
}
width = min(width, 100)
counter := 0
spacer := " "
var content strings.Builder