fix: linter errors (#263)

* refactor: extract magic numbers to const

* fix: linter errors
This commit is contained in:
Maas Lalani
2023-10-02 19:28:35 -07:00
committed by GitHub
parent ea723982eb
commit 0aaa280081
7 changed files with 40 additions and 130 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ func (s BlockStack) Margin() uint {
return i
}
// Width returns the available rendering width
// Width returns the available rendering width.
func (s BlockStack) Width(ctx RenderContext) uint {
if s.Indent()+s.Margin()*2 > uint(ctx.options.WordWrap) {
return 0