Refactoring of method "flush!" from Textile output buffer.
Slight changes.