SyntaxGeneratorTemplate.WriteWithLineBreakIfNeeded Method
Definition
- Assembly
- Sandcastle.Core.dll
This is used to write a string followed by an optional line break if needed (the writer position is past the maximum position afterwards).
public static bool WriteWithLineBreakIfNeeded(SyntaxWriter writer, string text, string indent)
Parameters
writerSyntaxWriterThe syntax writer to use
textstringAn optional text string to write before the new line
indentstringAn optional indent to write after the line break
Returns
- bool
True if a new line was written, false if not