-
Notifications
You must be signed in to change notification settings - Fork 886
Added options to the Smarty extension that configure the text that is us... #332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… used to replace quotes. This makes it possible to use the correct quotes in languages other than English.
Please:
|
I think @mitya57 has a point. The Also this definitely needs tests before consideration. Perhaps the example you added to the docs could be converted into a test. And while you're at it, if you could keep the docs hard wrapped at 80 chars, that would be preferred. |
…h allows to overwrite all substitution strings. Fixed line length in docs.
Ok, I replaced the smart_lsquo etc. keys by a single one: smart_substitutions and I updated the docs accordingly. However, I don't understand how I can specify a dict as configuration option in the test.cfg file, so currently I cannot write a test. |
You're correct that INI test config files cannot contain python dicts. There are a few other extensions which need more complex tests that the INI file can provide and their tests are contained in |
tests/test_extensions.py now has a test case for the new feature. |
@mitya57 I just gave you commit access. Smarty was your work. I'll let you merge this, and/or clean it up as you see fit. |
Thanks, I will get to this in a couple of days. And, actually, I still prefer that you do |
...ed to replace quotes. This makes it possible to use the correct quotes in languages other than English.
Use e.g. the following config for correct German quotes: