Mylyn WikiText Textile解析错误? [英] Mylyn WikiText Textile parsing error?
问题描述
我正在将Java博客平台的纺织插件从一个库(textile4j)迁移到Mylyn的WikiText.到目前为止非常有希望,但是我有一些失败的单元测试:
I'm working on migrating a textile plugin for a java blogging platform from one library (textile4j) to Mylyn's WikiText. So far very promising, but I have some unit tests that are failing:
public void testLinksSyntax44() {
String in = "\"link text(with title)\":http://example.com/";
String out = "<p><a href=\"http://example.com/\" title=\"with title\">link text</a></p>";
textile.parse(in);
String content = writer.toString();
assertEquals(out, content);
}
public void testLinksSyntax46() {
String in = "\"(link)link text(with title)\":http://example.com/";
String out = "<p><a href=\"http://example.com/\" class=\"link\" title=\"with title\">link text</a></p>";
textile.parse(in);
String content = writer.toString();
assertEquals(out, content);
}
基本上,输出显示WikiText解析title
语法时出现问题.每个测试的输出如下:
Basically, the output is showing a problem with WikiText parsing the title
syntax. The output for each test is as follows:
在#44中,输出为:<p><a href="http://example.com/">link text(with title)</a></p>
In #44, the output is: <p><a href="http://example.com/">link text(with title)</a></p>
在#46中,输出为:<p><a href="http://example.com/" class="link">link text(with title)</a></p>
In #46, the output is: <p><a href="http://example.com/" class="link">link text(with title)</a></p>
Textpattern Textile Web小部件可以正确解析带有类和标题("(link)link text(with title)":http://www.example.com/
)的链接以及带有标题("link text(with title)":http://www.example.com/
)简短形式的链接.
The Textpattern Textile web widget correctly parses the link with class and title ("(link)link text(with title)":http://www.example.com/
) and the link with title ("link text(with title)":http://www.example.com/
) short forms.
我做错了什么,还是发现了错误?我仍在困扰图书馆,但可能是熟悉图书馆的人知道问题所在,可以发现错误或可以帮助纠正我的问题.
Am I doing something wrong, or did I find a bug? I'm still groking the library, but it might be that one familiar with the library knows the problem, can find the error, or can help correct me.
非常感谢! 蒂姆
推荐答案
我发现该错误已被报告...
I found that the bug has been reported...
Eclipse Mylyn WikiText Bugzilla
这篇关于Mylyn WikiText Textile解析错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!