mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-28 11:14:24 +08:00
Fixed open html tags on truncate
This commit is contained in:
parent
529d988cc3
commit
8226322e92
1 changed files with 3 additions and 3 deletions
|
@ -191,12 +191,12 @@ module ProtocolsIoHelper
|
|||
text_end = reserved + @remaining - PIO_STEP_TOOLONG_LEN
|
||||
if text.length - reserved > @remaining
|
||||
text =
|
||||
text[0..text_end] +
|
||||
close_tags(text[0..text_end]) +
|
||||
t('protocols.protocols_io_import.too_long')
|
||||
@toolong = true
|
||||
end
|
||||
@remaining -= (close_tags(text).length - reserved)
|
||||
close_tags(text)
|
||||
@remaining -= (text.length - reserved)
|
||||
text
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue