You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by cu...@apache.org on 2025/02/22 14:29:21 UTC
(whimsy) branch master updated: Partial fix for linebreaks on statements
This is an automated email from the ASF dual-hosted git repository.
curcuru pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 5264432e Partial fix for linebreaks on statements
5264432e is described below
commit 5264432ee106c4502a0d815ca2b55ec47cb70d22
Author: Shane Curcuru <as...@shanecurcuru.org>
AuthorDate: Sat Feb 22 09:29:14 2025 -0500
Partial fix for linebreaks on statements
---
www/members/check_boardstmt.cgi | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/www/members/check_boardstmt.cgi b/www/members/check_boardstmt.cgi
index ae11f411..bc96cbab 100755
--- a/www/members/check_boardstmt.cgi
+++ b/www/members/check_boardstmt.cgi
@@ -63,7 +63,11 @@ _html do
_whimsy_accordion_item(listid: listid, itemid: "#{availid}-statement", itemtitle: "Candidate Statement for (#{availid})", n: 2, itemclass: 'panel-primary') do
_p do
# FIXME: display message for blank/one line or when DECLINE
- _{shash.fetch('candidate_statement', '')}
+ candidate_stmt = shash.fetch('candidate_statement', '')
+ candidate_stmt.split('\n') do |l| # TODO: consider adding styles or markdown processing
+ _! l
+ _br
+ end
end
end
end