mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-09-03 23:47:26 -04:00
fix: linter errors (#263)
* refactor: extract magic numbers to const * fix: linter errors
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user