Trim spaces around src tags

fixes #302