openmolecules.org

 
Home » DataWarrior » Bug Reports » Hyperlinks that contain a semicolon get split in two
Hyperlinks that contain a semicolon get split in two [message #1553] Fri, 18 March 2022 11:04 Go to next message
vaitkus is currently offline  vaitkus
Messages: 4
Registered: March 2022
Junior Member
I was trying to update one of my DWAR files to generate hyperlinks for the DOI column values. I followed the instructions described in one of the previous posts and managed to get things working as desired except for one small problem -- DOI strings that have semicolon symbols (';') get split into two.

I have attached a minimal reproducible example as the "doi.dwar" file. Right clicking the field that contains the DOI string "10.1002/(SICI)1521-3749(199808)624:8<1279::AID-ZAAC1279>3.0.CO;2-K "
provides two options in the "Open <Description> in Web-Browser" menu:

* 10.1002/(SICI)1521-3749(199808)624:8<1279::AID-ZAAC1279>3.0.CO
* 2-K

Is there a way to circumvent this without modifying the actual DOI field value?
  • Attachment: doi.dwar
    (Size: 0.34KB, Downloaded 20 times)
Re: Hyperlinks that contain a semicolon get split in two [message #1582 is a reply to message #1553] Wed, 06 April 2022 11:16 Go to previous messageGo to next message
thomas is currently offline  thomas
Messages: 502
Registered: June 2014
Senior Member
This is now fixed. In DataWarrior the String "; " and a '/n' are allowed data separators. The code to separate the string here was too laze and also separated at a single semicolon. Now it is more strict to require at least one SPACE after the semicolon.

In addition, when directly clicking the link in a DataWarrior cell, the content was not URL encoded. Therefore the semicolon caused a problem. Now cell content will be encoded unless the column properties section contains a line like:
<columnProperty="lookupEncode0 false">

The change is deployed in the current dev update.
Re: Hyperlinks that contain a semicolon get split in two [message #1607 is a reply to message #1582] Mon, 09 May 2022 22:42 Go to previous message
vaitkus is currently offline  vaitkus
Messages: 4
Registered: March 2022
Junior Member
Thank you for the update. I have tested the latest version (e8efa7b) from the GitHub repo and can confirm that the bug no longer manifests.
Previous Topic: Problems with opening hyperlinks under Linux
Goto Forum:
  


Current Time: Mon May 23 19:46:56 CEST 2022

Total time taken to generate the page: 0.01463 seconds