Pre tag trim issue

Using trim in order to clear out the options line caused pre tags to loose spacing, adding a \s* to the options regex allows it to get escaped without the need to use trim. 

Thanks
Ronen