Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1761)

Unified Diff: tools/json_schema_compiler/code.py

Issue 1062573004: [Extension API Extern Generation] Fix a few bugs in extern generation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Dan's Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/json_schema_compiler/code.py
diff --git a/tools/json_schema_compiler/code.py b/tools/json_schema_compiler/code.py
index 5f0a98a23df5801b3c6c5be2953822941f8f4103..e454e5d444039808553ae73e2f74823f81133fb3 100644
--- a/tools/json_schema_compiler/code.py
+++ b/tools/json_schema_compiler/code.py
@@ -132,7 +132,7 @@ class Code(object):
# First line has the full maximum length.
if not new_line and self._code:
- max_len = self._comment_length - len(self._code[-1].value) - 1
+ max_len = self._comment_length - len(self._code[-1].value)
else:
max_len = (self._comment_length - len(''.join(self._line_prefixes)) -
len(comment_prefix))
« no previous file with comments | « no previous file | tools/json_schema_compiler/code_test.py » ('j') | tools/json_schema_compiler/js_externs_generator.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698