-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Change the way %(date)s and %(username)s are dealt with in template.py #6379
Comments
take the part between tripe-double-quotes seperately and deal with it seperately we can replace %(date)s properly no matter what a man add in template.py
This reverts commit 3206df3.
This reverts commit ad8ed03.
if there are invaild placeholders in template.py, check line by line to replace vaild placeholders and ignore the invailds.
does anyone know how to change the date format in template.py to ,say, 2018-07-11 22:22:22? |
@Hailprob It looks like it's hard coded in editor.py so you would have to change spyder code: spyder/spyder/plugins/editor.py Line 1901 in b7bc7d1
|
is this going to be added to the next version of spyder? |
No. |
bump! |
maybe we should only replace placeholder between the tripe-double-quotes(“”“...”“”)
if u use this template.py
u will get this
but of course we r expecting this
the %(date)s has not been replaced properly because there is more placeholder
in this template.py
in the code dealing with template.py
if we take the part between tripe-double-quotes seperately and deal with it seperately we can replace %(date)s properly no matter what a man add in template.py
i edit the edior.py as following,and it worked.
The text was updated successfully, but these errors were encountered: