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

Fix escaping of | inside table cells #3112

Merged
merged 3 commits into from
Oct 3, 2022
Merged

Fix escaping of | inside table cells #3112

merged 3 commits into from
Oct 3, 2022

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Oct 1, 2022

Summary

| is a special character inside tables and need to be escaped if used inside table cells.
Without this tables get broken if a cell contains something like a | b.

@vinicius73
Copy link
Member

Works!
Thanks to take care of it.

Can you prepare a test for it? To prevent eventual regression.

Copy link
Member

@juliusknorr juliusknorr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a tons, tested and works. 👍

A small unit test would be great :)

@vinicius73 vinicius73 added this to the Nextcloud 26 milestone Oct 3, 2022
susnux added 2 commits October 3, 2022 18:17
`|` is a special character inside tables and need to be escaped
if used inside table cells.

Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
@susnux
Copy link
Contributor Author

susnux commented Oct 3, 2022

/compile

@susnux
Copy link
Contributor Author

susnux commented Oct 3, 2022

@vinicius73 @juliushaertl Added a test to ensure table cells are escaped

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@vinicius73 vinicius73 merged commit 0e605d9 into master Oct 3, 2022
@delete-merged-branch delete-merged-branch bot deleted the fix/table-escape branch October 3, 2022 18:05
@vinicius73
Copy link
Member

/backport 9b3ddae,61df5f4fbdbb2962d15f34bb0b74af046646c324 to stable25

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

Successfully merging this pull request may close these issues.

4 participants