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 rules page formatting #177

Merged
merged 1 commit into from
Oct 30, 2021
Merged

Conversation

silic0nalph4
Copy link
Contributor

Fixes #176

Remove textarea from rules page and use Twig's nl2br function to format the text.

The rules page uses a textarea to show lines break.
This commit replaces the textarea and uses the Twig
nl2br function to format the text for web browsers.

Fixes slawkens#176
@slawkens
Copy link
Owner

Thanks.

Yes, this is actually old code from the time when Rules were shown directly on the "Create Account" page, that's why there was the check for "page" == "rules".

I'll merge it.

@slawkens slawkens merged commit 28dd196 into slawkens:master Oct 30, 2021
@silic0nalph4 silic0nalph4 deleted the fix-rules-page branch October 30, 2021 22:47
@silic0nalph4
Copy link
Contributor Author

Ahh, that makes sense! 👍 Thanks for the merge, and thanks again for the excellent project 😀

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.

Rules page shows a textarea when not needed
2 participants