I decided to do some tests using different version of Tinderbox (see table below) and different versions of the Publish to Devonthink file (see also table below).
For each test, I did:
- A clean install of Tinderbox (delete cache…)
- Download the original file from the GitHub page
Then I repeated this sequence:
- Create a Note called “Note A” with the content “This is note A”
- Create a Note called “Note B” with the content “This is note B”
- Add the prototype p_DEVONITEM to both
- Run the stamp to export the notes to DT
- Observe the behaviour: Are the notes created in DT? Do I get back the url from DT?
- Create a Note called “Note C” with the content “This is note C” and a zip link at the end to Note A
- Add the prototype p_DEVONITEM
- Run the stamp to export the notes to DT
Here is the result of those tests:
Tinderbox version | Publish version | Export Note A & B | Export Note C | TB crashes? |
---|---|---|---|---|
8.7.1 (b467) | 0.4.1 | Works | Works | No |
8.7.1 (b467) | 0.5.1 | Works | Works | No |
8.8.0 (b479) | 0.4.1 | Nothing happen | Nothing happen | No |
8.8.0 (b479) | 0.5.1 | Nothing happen | Nothing happen | No |
8.8.1 (b482) | 0.4.1 | Nothing happen | Nothing happen | No |
8.8.1 (b482) | 0.5.1 | Nothing happen | Nothing happen | No |
I think the issue lies in the HTML code produced.
Here is the content of the attribute DTExportSource for Note C from Tinderbox 8.7.1 (b467) and file 0.5.1:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
<title>Note C</title>
</head>
<body>
<h1>Note C</h1>
<p>This is note C</p>
<p><a href=\"x-devonthink-item://939D01FF-7219-4AE7-AA6C-AC459FEAE6D4\">Note A</a></p>
</body>
</html>
Here is the content of the attribute DTExportSource for Note C from Tinderbox 8.8.1 (b482) and file 0.5.1:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv=\\\\\\"content-type\\\\\\" content=\\\\\\"text/html; charset=utf-8\\\\\\">
<title>Note C</title>
</head>
<body>
<h1>Note C</h1>
<p>This is Note C</p>
<p><a href=\\\\\\"Note_A.html\\\\\\">Note A</a></p>
</body>
</html>
Note here all the extra backslash.
In the temple Sectional HTML page
, Removing the line:
<meta http-equiv="content-type" content="text/html; charset=utf-8">
The note A and B (that contain no link) are exported to DT.
Note C not because of there are still too many backslashes in the <a>
tag.
The file used being exactly the same between the version of Tinderbox, I think the issue is within Tinderbox and something has changed between 8.7.x and 8.8.x.