How to ignore extra whitespaces in translation functions like _e?
My first thought would be to wrap the string in a trim() statement: <?php _e( trim($text), $domain ) ?> Would this do what you are wanting it to do or did I misunderstand your question? EDIT: On looking further at the docs, while technically you may be able to get away with passing a variable, … Read more