Pre tag trim issue

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