<br><br>On Wednesday, September 17, 2014, Diego Novillo <<a href="mailto:dnovillo@google.com">dnovillo@google.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 17, 2014 at 11:12 AM, Justin Bogner <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','mail@justinbogner.com');" target="_blank">mail@justinbogner.com</a>></span> wrote:</div><div class="gmail_quote"> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Also, skipping blank lines in your patch seems to have a counter intuitive semantics. If I'm skipping blank lines, it means I don't want to be returned a blank line, but I still expect the line number to be increased. In this patch, that does not seem to happen. In fact, the test here seems wrong:</div></div></blockquote><div></div><div><br></div></span><div>I think you've misread something here - the line number is increased when we skip blank lines. The behaviour when SkipBlanks is true is unchanged from without this patch.</div></blockquote><div><br></div><div>Ah, yes, quite right.  </div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>-  EXPECT_EQ("line 4", *I);</div><div>-  EXPECT_EQ(4, I.line_number());</div><div>+  EXPECT_EQ("line 5", *I);</div><div>+  EXPECT_EQ(5, I.line_number());</div><div>+  ++I;</div></div><div><br></div><div>The string "line 5" is really at line 6, so I.line_number() should return 6, not 5.</div></div></blockquote><div><br></div></div></div><div>No, the string "Line 5" is really line 5. Note that an extra newline was added to the test, so line 4 is now blank.</div></blockquote><div><br></div><div>Yes, that's what confused me.</div><div><br></div><div>Patch LGTM. Thanks!</div></div></div></div></blockquote><div><br></div><div>Sorry about the confusion there, and thanks for the review! Committed in r217960.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>Diego.</div></div></div></div>
</blockquote>