Skip to content

Commit

Permalink
Actually fix displaying linebreaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneCurcuru committed Feb 22, 2025
1 parent d17ed8d commit c85a6e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/whimsy/asf/member-files.rb
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def self.board_nominees
def self.board_statements
statements = {}
Dir["#{File.join(latest_meeting(), BOARD_BALLOT)}/*#{BOARD_BALLOT_EXT}"].each do |f|
statements[File.basename(f, BOARD_BALLOT_EXT)] = {'candidate_statement' => IO.read(f)}
statements[File.basename(f, BOARD_BALLOT_EXT)] = {'candidate_statement' => IO.readlines(f)}
end
return statements
end
Expand Down
4 changes: 2 additions & 2 deletions www/members/check_boardstmt.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ _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
candidate_stmt = shash.fetch('candidate_statement', '')
candidate_stmt.split('\n') do |l| # TODO: consider adding styles or markdown processing
candidate_stmt = shash.fetch('candidate_statement', '') # See also lib/whimsy/asf/member-files.rb::board_statements
candidate_stmt.each do |l| # TODO: consider adding styles or markdown processing
_! l
_br
end
Expand Down

0 comments on commit c85a6e3

Please sign in to comment.