Mylyn WikiText Text analysis error?

I am working on porting a text plugin for the java blogging platform from one library (textile4j) to Mylyn WikiText. So far, very promising, but I have some unit tests that fail:

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); } 

Basically, the output is a problem with WikiText parsing the syntax of title . The output for each test is as follows:

In No. 44, the conclusion is: <p><a href="http://example.com/">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>

The Textpattern Textile web widget correctly analyzes the link with the class and title ( "(link)link text(with title)":http://www.example.com/ ) and the link with short title formats ( "link text(with title)":http://www.example.com/ ).

Am I doing something wrong, or have I found a mistake? I am still building the library, but it may be that someone familiar with the library knows the problem, may find an error, or may help me.

Thank you very much! Tim

0
source share
1 answer

I found that the error was reported ...

Eclipse Mylyn WikiText Bugzilla

0
source

Source: https://habr.com/ru/post/1479588/


All Articles