From 80b1af302440807840f71924f538e50b6927d7da Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Wed, 16 Oct 2019 17:59:04 +0200 Subject: [PATCH] layout: fix godoc.org rendering of layout.Format docs Signed-off-by: Elias Naur --- layout/format.go | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/layout/format.go b/layout/format.go index ab5f5b30..366448fd 100644 --- a/layout/format.go +++ b/layout/format.go @@ -38,32 +38,32 @@ type formatError string // // Available layouts: // -// inset(insets, widget) applies Inset to widget. Insets are either: -// one value for uniform insets; two values for top/bottom and -// right/left insets; three values for top, bottom and right/left -// insets; or four values for top, right, bottom, left insets. +// inset(insets, widget) applies Inset to widget. Insets are either: +// one value for uniform insets; two values for top/bottom and +// right/left insets; three values for top, bottom and right/left +// insets; or four values for top, right, bottom, left insets. // -// (widget) applies a directed ALign to widget. Direction -// is one of north, northeast, east, southeast, south, southwest, west, -// northwest, center. +// (widget) applies a directed ALign to widget. Direction +// is one of north, northeast, east, southeast, south, southwest, west, +// northwest, center. // -// hexpand/vexpand(widget) forces the horizontalor or vertical -// constraints to their maximum before laying out widget. +// hexpand/vexpand(widget) forces the horizontalor or vertical +// constraints to their maximum before laying out widget. // -// hcap/vcap(, widget) caps the maximum horizontal or vertical -// constraints to size. +// hcap/vcap(, widget) caps the maximum horizontal or vertical +// constraints to size. // -// hflex/vflex(, children...) lays out children with a -// horizontal or vertical Flex. Each rigid child must be on the form -// r(widget), and each flex child on the form f(, widget). -// If alignment is specified, it must be one of: start, middle, end, -// baseline. The default alignment is start. +// hflex/vflex(, children...) lays out children with a +// horizontal or vertical Flex. Each rigid child must be on the form +// r(widget), and each flex child on the form f(, widget). +// If alignment is specified, it must be one of: start, middle, end, +// baseline. The default alignment is start. // -// stack(, children) lays out children with a Stack. Each -// Rigid child must be on the form r(widget), and each expand child -// on the form e(widget). -// If alignment is specified it must be one of the directions listed -// above. +// stack(, children) lays out children with a Stack. Each +// Rigid child must be on the form r(widget), and each expand child +// on the form e(widget). +// If alignment is specified it must be one of the directions listed +// above. func Format(gtx *Context, format string, widgets ...Widget) { if format == "" { return