Merge pull request #4949 from sboursen-scinote/sb_SCI-7237

Improve the print functionality for protocol [SCI-7237]
This commit is contained in:
artoscinote 2023-03-01 12:48:39 +01:00 committed by GitHub
commit 4a65a9e55e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -58,7 +58,7 @@ hr {
}
.print-step {
margin: 5em 0;
margin: 2em 0;
}
.step-check-circle {

View file

@ -34,7 +34,7 @@
<% step_text = step_element.orderable %>
<div class="print-step-text">
<div class="ql-editor">
<%= custom_auto_link(step_text.tinymce_render(:text),
<%= custom_auto_link(step_text.tinymce_render(:text).gsub(/<p>\S<\/p>/, '').strip,
simple_format: false,
tags: %w(img),
team: current_team,