mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Fix wrapping of comments in generated files.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1623 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -123,8 +123,16 @@ def make_cpptoc_function_impl_new(name, func, defined_names):
|
||||
'\n return'+retval_default+';'
|
||||
|
||||
if len(optional) > 0:
|
||||
result += '\n // Unverified params: '+string.join(optional,', ')
|
||||
|
||||
# Wrap the comment at 80 characters.
|
||||
str = '\n // Unverified params: ' + optional[0]
|
||||
for name in optional[1:]:
|
||||
str += ','
|
||||
if len(str) + len(name) + 1 > 80:
|
||||
result += str
|
||||
str = '\n //'
|
||||
str += ' ' + name
|
||||
result += str
|
||||
|
||||
if len(result) != result_len:
|
||||
result += '\n'
|
||||
result_len = len(result)
|
||||
|
Reference in New Issue
Block a user