Skip to content

25: Use simple_format to display puzzle questions#38

Merged
JuanVqz merged 1 commit intomainfrom
fix/25-newlines
Oct 9, 2025
Merged

25: Use simple_format to display puzzle questions#38
JuanVqz merged 1 commit intomainfrom
fix/25-newlines

Conversation

@fbuys
Copy link
Copy Markdown
Member

@fbuys fbuys commented Oct 7, 2025

Render puzzle question with line breaks

Use Rails' simple_format helper to display puzzle questions with preserved line breaks in the table view. This improves readability for questions containing newline characters from the database.

See: https://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html

QA Notes

  • Edit a puzzle's question text (by adding newlines \n)
  • Ensure all puzzles display as expected (with newlines where they are expected)

PR fixes: #25

@mateusdeap
Copy link
Copy Markdown
Member

LGTM. Just make sure to solve conflicts before merging

Render puzzle question with line breaks

Use Rails' simple_format helper to display puzzle questions with preserved
line breaks in the table view. This improves readability for questions
containing newline characters from the database.

See: https://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html
@JuanVqz JuanVqz merged commit a844fee into main Oct 9, 2025
4 checks passed
@JuanVqz JuanVqz deleted the fix/25-newlines branch March 10, 2026 21:59
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

Successfully merging this pull request may close these issues.

Bug: Newlines not displayed on index/dashboard page

3 participants