mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-10-29 04:28:15 -04:00
Add documentation for a few more types
This commit is contained in:
6 files changed
+23
-6
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user