very careful whitespace fixing for inline lists