Add failing unit test for smarty: ellipsis before close double quote generates opening double quote.
Fix #315: Change order of smarty patterns to make the test pass again
Merge pull request #316 from mitya57/master

Fix for smarty extension