ep_codepad icon indicating copy to clipboard operation
ep_codepad copied to clipboard

File inconsistence on "push"

Open undermink opened this issue 8 years ago • 1 comments

Hitting the "push" button gave me a permanent "File inconsistent with pad content"-Error. Changing: if (adat !== text.slice(0, -1)) { to if (adat !== text) { in handleButtonMessage.js seems to fix it for me.

https://github.com/LaKing/ep_codepad/blob/master/handleButtonMessage.js#L108

undermink avatar Feb 01 '17 22:02 undermink

Etherpad sometimes adds a newline character sometimes. Indeed we can make that conditions more tolerant.

LaKing avatar Feb 01 '17 23:02 LaKing