Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • This does the correct thing for the first blank line, but also inserts two lines at the end of the file where I had a blank line as well: % ghi and %. I ONLY want the first occurrence to be replaced. Commented Oct 30, 2015 at 19:18
  • @PeterGrill - I don't think it should ever do that. It should only ever change the first occurrence of a blank line, I think... Commented Oct 30, 2015 at 19:36
  • @PeterGrill - was the last line the first occurring blank line in the file? if so, then yes, it should do that, because it is supposed only to replace the first occurring blank line. Commented Oct 30, 2015 at 19:38