• Dave Schuyler's avatar
    [presub] lstrip line limit exceptions; ignore <g and <path · 9b9b94c4
    Dave Schuyler authored
    Previously, the <link lines in HTML are allowed to have longer than 80 characters.
    This CL adds <g and <path to the HTML lines that may have unlimited characters.
    (These g and path tags are used in svg image data).
    These HTML exemptions also have a trailing space. The space is intended to reduce
    false-positives in matching. There are some occurrences of these tags followed by a 
    \n which will not match (but the line ends there, so it's not an issue).
    
    These new tags may be preceded by blank space so .lstrip() was added to
    the test. I believe this .lstrip() should not be an issue for the other
    languages and exemptions present.
    
    Bug: None
    Change-Id: Ie9c2bca0e7147033e360ddcfc6eee3b73e167228
    Reviewed-on: https://chromium-review.googlesource.com/477371Reviewed-by: 's avatarMarc-Antoine Ruel <maruel@chromium.org>
    Commit-Queue: Dave Schuyler <dschuyler@chromium.org>
    9b9b94c4
presubmit_canned_checks.py 42.6 KB