epam / Indigo

Universal cheminformatics toolkit, utilities and database search tools
http://lifescience.opensource.epam.com
Apache License 2.0
290 stars 99 forks source link

Preview: IDT sequence with leading or trailing spaces will not open. #1979

Closed NadezhdaPeskun closed 1 month ago

NadezhdaPeskun commented 1 month ago

Steps to Reproduce

  1. Switch to Macro
  2. Open from Clipboard
  3. Add IDT sequence /52MOErA/*/i2MOErC/*/i2MOErG/*G*+A*mT*A*T*rA*G*/i2MOErG/*/32MOErT/

4.Select IDT

  1. Add break-spaces to start or end of sequences
  2. try to Add to Canvas

Actual behavior IDT sequence with leading or trailing spaces will not open. image

Expected behavior IDT sequence with leading or trailing spaces will not open. leading or trailing spaces should be removed

Tasks:

Versions: Windows 11 Chrome Version Version 123.0.6312.106 (Official Build) (64-bit)

CI version: Ketcher Version 2.22.0-rc.1 Build at 2024-04-15; 20:00:15 Indigo Toolkit Version 1.21.0-dev4

AlexeyGirin commented 3 weeks ago

Verified. image

AlexeyGirin commented 3 weeks ago

Test cases added to autotests table