Problem: truncates example code at first '@' character

Solution: correctly end only on @discuss or @end tags.