forked from sloum/bombadillo
Lets images be full width
This commit is contained in:
parent
2bb8272cf9
commit
909131cda8
2
page.go
2
page.go
|
@ -66,11 +66,11 @@ func (p *Page) RenderImage(width int) {
|
||||||
// of the Page struct width a string slice
|
// of the Page struct width a string slice
|
||||||
// of the wrapped data
|
// of the wrapped data
|
||||||
func (p *Page) WrapContent(width int, color bool) {
|
func (p *Page) WrapContent(width int, color bool) {
|
||||||
width = min(width, 100)
|
|
||||||
if p.FileType == "image" {
|
if p.FileType == "image" {
|
||||||
p.RenderImage(width)
|
p.RenderImage(width)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
width = min(width, 100)
|
||||||
counter := 0
|
counter := 0
|
||||||
spacer := " "
|
spacer := " "
|
||||||
var content strings.Builder
|
var content strings.Builder
|
||||||
|
|
Loading…
Reference in New Issue