* fixed pamd single line issue * added changelog fragment * supported case for 0 lines, improved test