ep_codepad
ep_codepad copied to clipboard
File inconsistence on "push"
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
Etherpad sometimes adds a newline character sometimes. Indeed we can make that conditions more tolerant.