/**
* Adds extra space.
* This method should probably be rewritten.
*/
protected internal void AddSpacing(float extraspace, float oldleading, Font f) {
if (extraspace == 0) return;
if (pageEmpty) return;
if (currentHeight + line.Height + leading > IndentTop - IndentBottom) return;
leading = extraspace;
CarriageReturn();
if (f.IsUnderlined() || f.IsStrikethru()) {
f = new Font(f);
int style = f.Style;
style &= ~Font.UNDERLINE;
style &= ~Font.STRIKETHRU;
f.SetStyle(style);
}
Chunk space = new Chunk(" ", f);
space.Process(this);
CarriageReturn();
leading = oldleading;
}