Make "Name" really be the same as "name" with only the first letter capitalized. Before, it had the first letter capitalized but all the others lower case
--HG-- extra : convert_revision : bcbb28f2bf268765c1d37075a4417a4a6c1b9588
This commit is contained in:
parent
65fedeb5a7
commit
7f5409f2ba
1 changed files with 5 additions and 1 deletions
|
@ -866,7 +866,11 @@ class Format:
|
|||
context = {}
|
||||
updateExportContext()
|
||||
context.update(exportContext)
|
||||
context.update({ 'name': name, 'Name': string.capitalize(name) })
|
||||
if len(name):
|
||||
Name = name[0].upper()
|
||||
if len(name) > 1:
|
||||
Name += name[1:]
|
||||
context.update({ 'name': name, 'Name': Name })
|
||||
try:
|
||||
vars = self.func(self.user_code, context, *args[0], **args[1])
|
||||
except Exception, exc:
|
||||
|
|
Loading…
Reference in a new issue