fix inline << operator for Document