layout: fix godoc.org rendering of layout.Format docs

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-10-16 17:59:04 +02:00
parent c76490956d
commit 80b1af3024
+21 -21
View File
@@ -38,32 +38,32 @@ type formatError string
// //
// Available layouts: // Available layouts:
// //
// inset(insets, widget) applies Inset to widget. Insets are either: // inset(insets, widget) applies Inset to widget. Insets are either:
// one value for uniform insets; two values for top/bottom and // one value for uniform insets; two values for top/bottom and
// right/left insets; three values for top, bottom and right/left // right/left insets; three values for top, bottom and right/left
// insets; or four values for top, right, bottom, left insets. // insets; or four values for top, right, bottom, left insets.
// //
// <direction>(widget) applies a directed ALign to widget. Direction // <direction>(widget) applies a directed ALign to widget. Direction
// is one of north, northeast, east, southeast, south, southwest, west, // is one of north, northeast, east, southeast, south, southwest, west,
// northwest, center. // northwest, center.
// //
// hexpand/vexpand(widget) forces the horizontalor or vertical // hexpand/vexpand(widget) forces the horizontalor or vertical
// constraints to their maximum before laying out widget. // constraints to their maximum before laying out widget.
// //
// hcap/vcap(<size>, widget) caps the maximum horizontal or vertical // hcap/vcap(<size>, widget) caps the maximum horizontal or vertical
// constraints to size. // constraints to size.
// //
// hflex/vflex(<alignment>, children...) lays out children with a // hflex/vflex(<alignment>, children...) lays out children with a
// horizontal or vertical Flex. Each rigid child must be on the form // horizontal or vertical Flex. Each rigid child must be on the form
// r(widget), and each flex child on the form f(<weight>, widget). // r(widget), and each flex child on the form f(<weight>, widget).
// If alignment is specified, it must be one of: start, middle, end, // If alignment is specified, it must be one of: start, middle, end,
// baseline. The default alignment is start. // baseline. The default alignment is start.
// //
// stack(<alignment>, children) lays out children with a Stack. Each // stack(<alignment>, children) lays out children with a Stack. Each
// Rigid child must be on the form r(widget), and each expand child // Rigid child must be on the form r(widget), and each expand child
// on the form e(widget). // on the form e(widget).
// If alignment is specified it must be one of the directions listed // If alignment is specified it must be one of the directions listed
// above. // above.
func Format(gtx *Context, format string, widgets ...Widget) { func Format(gtx *Context, format string, widgets ...Widget) {
if format == "" { if format == "" {
return return