Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File inconsistence on "push" #12

Open
undermink opened this issue Feb 1, 2017 · 1 comment
Open

File inconsistence on "push" #12

undermink opened this issue Feb 1, 2017 · 1 comment

Comments

@undermink
Copy link

undermink commented Feb 1, 2017

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

@LaKing
Copy link
Owner

LaKing commented Feb 1, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants