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

Issue 2615953002: Fix grit's <if> not to strip trailing or preceding whitespace (Closed)

Created:
3 years, 11 months ago by Dan Beam
Modified:
3 years, 11 months ago
Reviewers:
Nico
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix grit's <if> not to strip trailing or preceding whitespace This is so a single line comment can be used to exclude <if> in .js files. I've added tests for both <include> and <if>. They need to be commented for clang-format purposes. BUG=678778 R=thakis@chromium.org Review-Url: https://codereview.chromium.org/2615953002 Cr-Commit-Position: refs/heads/master@{#441853} Committed: https://chromium.googlesource.com/chromium/src/+/42fdc659ccc288d4a3a01f202c7d667e76b04192

Patch Set 1 #

Total comments: 4

Patch Set 2 : indent tweak and comment fixes for thakis@ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -4 lines) Patch
M tools/grit/grit/format/html_inline.py View 1 chunk +4 lines, -4 lines 0 comments Download
M tools/grit/grit/format/html_inline_unittest.py View 1 1 chunk +63 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 14 (9 generated)
Dan Beam
3 years, 11 months ago (2017-01-05 21:55:39 UTC) #1
Nico
lgtm with comments, but I'd file a dedicated "put grit statements in js files in ...
3 years, 11 months ago (2017-01-05 22:00:05 UTC) #4
Dan Beam
https://codereview.chromium.org/2615953002/diff/1/tools/grit/grit/format/html_inline_unittest.py File tools/grit/grit/format/html_inline_unittest.py (right): https://codereview.chromium.org/2615953002/diff/1/tools/grit/grit/format/html_inline_unittest.py#newcode448 tools/grit/grit/format/html_inline_unittest.py:448: '''Tests that commenting out an <include> works predictably.''' On ...
3 years, 11 months ago (2017-01-05 22:25:41 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2615953002/20001
3 years, 11 months ago (2017-01-05 22:26:25 UTC) #11
commit-bot: I haz the power
3 years, 11 months ago (2017-01-06 02:53:33 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/42fdc659ccc288d4a3a01f202c7d...

Powered by Google App Engine
This is Rietveld 408576698