Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345197 - Can't handle internal link references with alternate text
Summary: Can't handle internal link references with alternate text
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 1.5.0   Edit
Assignee: David Green CLA
QA Contact: David Green CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-09 16:18 EDT by John Arthorne CLA
Modified: 2011-05-17 15:54 EDT (History)
0 users

See Also:


Attachments
mylyn/context/zip (35.90 KB, application/octet-stream)
2011-05-09 17:49 EDT, David Green CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2011-05-09 16:18:44 EDT
Build: 3.5.0.I20110104-0100

I have links of this form in my doc:

[[Orion/Server API/Preference API| Preference API]]

I am using the mediawiki-to-eclipse-help Ant task, and it converts these links as follows:

Preference API]]

I would expect:

<a href="...location...">Preference API</a>

If you want to see the exact wiki page being converted, it is here:

http://wiki.eclipse.org/index.php?title=Orion/Server_API&oldid=249961
Comment 1 David Green CLA 2011-05-09 17:30:17 EDT
Thanks for the bug.  This appears to be related to links in tables.

I've pushed a failing unit test to topic branch @task-345197-mediawiki-links-alttext-in-tables@
Comment 2 David Green CLA 2011-05-09 17:49:23 EDT
problem was that tables cell can have options delimited with a pipe  '|' character, which was causing the parser to incorrectly see the first part of the hyperlink as table options.  

Updated the table implementation, now fixed on master.
Comment 3 David Green CLA 2011-05-09 17:49:26 EDT
Created attachment 195155 [details]
mylyn/context/zip
Comment 4 John Arthorne CLA 2011-05-10 09:13:57 EDT
Cool, thanks for the fast turnaround!
Comment 5 John Arthorne CLA 2011-05-13 15:53:12 EDT
Where can I grab a build to verify this fix? The "latest build" link on the Mylyn download page points to a build from January 4, but there must be newer builds out there somewhere?

http://www.eclipse.org/mylyn/downloads/
Comment 6 David Green CLA 2011-05-16 21:10:46 EDT
The "latest" link is for releases.  What you're looking for is a weekly build (which is not yet released).  Those can be found a little further down on the downloads page
http://www.eclipse.org/mylyn/downloads/
Comment 7 John Arthorne CLA 2011-05-17 15:54:55 EDT
(In reply to comment #6)
> The "latest" link is for releases.  What you're looking for is a weekly build
> (which is not yet released).  Those can be found a little further down on the
> downloads page
> http://www.eclipse.org/mylyn/downloads/

I can see there is a weekly p2 repository, from which I can install the latest build into my Eclipse platform install. However I was looking for the "standalone wikitext" build, which is what my Ant scripts refer to. Is that produced during weekly builds or only for releases? If only for releases, I'll figure out how to adjust my Ant scripts to point to bundles in my install.