MCPcopy Create free account
hub / github.com/OpenPrinting/goipp / forceNL

Method forceNL

formatter.go:206–210  ·  view source on GitHub ↗

forceNL inserts newline character if Formatter is not at the. beginning of new line

()

Source from the content-addressed store, hash-verified

204// forceNL inserts newline character if Formatter is not at the.
205// beginning of new line
206func (f *Formatter) forceNL() {
207 if !f.onNL() {
208 f.buf.WriteByte('\n')
209 }
210}
211
212// doIndent outputs indentation space.
213// It returns number of characters written.

Callers 1

fmtAttributeOrMemberMethod · 0.95

Calls 1

onNLMethod · 0.95

Tested by

no test coverage detected