Skip to content

Commit

Permalink
Make search whitespace more visible
Browse files Browse the repository at this point in the history
  • Loading branch information
bwalkerl authored and brendanheywood committed Oct 10, 2024
1 parent 38cb292 commit 452f835
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions classes/search_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,18 @@ public function col_userid(stdClass $record): string {
return \html_writer::link(new \moodle_url('/user/profile.php', ['id' => $record->userid]), $display);
}

/**
* Formats content for the search column.
*
* @param stdClass $record
* @return string
*/
public function col_search(stdClass $record): string {
$class = 'border p-1 d-inline';
$style = 'white-space: pre-wrap;';
return \html_writer::tag('pre', $record->search, ['class' => $class, 'style' => $style]);
}

/**
* Generate content for progress column.
*
Expand Down

0 comments on commit 452f835

Please sign in to comment.