Hello, Samuel Wales <samolog...@gmail.com> writes:
> thank you. when i can, i will try explicitly setting all three to 0 > to see if that prevents the unwanted newlines, in the buffer with > newline on last line, and empty buffer, cases. > > the docstring says empty-lines defaults to 0, which is what i want. > it does not say what the default for after and before are. > > it /sounds/ like capture is supposed to produce the desired number > [and position] of empty lines regardless of whether the buffer is > empty or there is or is not a trailing newline on the final line of > hte buffer. is this more or less correct? I didn't read the whole thread, but a final newline is mandatory in all capture templates, independently on the number of desired blank lines. If such final newline is not provided, the capture mechanism will add one. The only exception is about empty capture templates, which are left as-is, i.e. a "final newline" is not added in that case. I don't know if that answers your question, but HTH. Regards, -- Nicolas Goaziou