#361 Two extraneous lines displayed in file view
Closed: Fixed Opened by jpokorny.

I.e. https://pagure.io/pagure/blob/master/f/.gitignore:

23 clones/
24
25

Yes this is something I've seen everywhere, but I didn't fine the root cause of it (fixing could be as simple as removing the extra 2 lines but :-/)

Ok I found the root cause for this

One question: do we want to keep 1 extra line at the end or do we prefer to have only the exact number of lines?

My preference is to strip single trailing \n (if present) for the purpose of content display,

(using vim as a precedent)

Fixed in https://pagure.io/pagure/pull-request/396

Commit d264fddf fixes this ticket

Commit d264fddf fixes this issue

Metadata