Add documentation for a few more types

This commit is contained in:
Christian Muehlhaeuser committed 2019-12-25 05:40:28 +01:00
1 parent 9157a40ab2
commit 56af24c72d
6 files changed
+23 -6

No files matched your search

+3
View File
@@ -8,12 +8,15 @@ import (
"github.com/muesli/reflow/padding"
)
// MarginWriter is a Writer that applies indentation and padding around
// whatever you write to it.
type MarginWriter struct {
w io.Writer
pw *padding.Writer
iw *indent.Writer
}
// NewMarginWriter returns a new MarginWriter.
func NewMarginWriter(ctx RenderContext, w io.Writer, rules StyleBlock) *MarginWriter {
bs := ctx.blockStack