stm2 / gwtwiki

Automatically exported from code.google.com/p/gwtwiki
0 stars 0 forks source link

line breaks removed after stripping wikipedia markup language #156

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. I have a String with this content:

[[Image:New York from Empire State Building.jpg|thumb|250px|right|New York]]

'''New York''' es li max grand cité in li [[Unit States de America|USA]].

Li cité esset fundet in li annu [[1624]].

It have 8 085 742 habitantes in li annu [[2000]].

2) And I try to strip wikipedia markup language using this code:

  WikiModel wikiModel = new WikiModel("http://wiki.office.aol.com/wiki/${image}",
                                            "http://wiki.office.aol.com/wiki/${title}");
  wikiModel.setUp();

  String dataStripped = wikiModel.render(new StufferPlainTextConverter(), data);

What is the expected output? What do you see instead?

What I obtain is this string without line breaks:

New York es li max grand cité in li USA.Li cité esset fundet in li annu 
1624.It have 8 085 742 habitantes in li annu 2000.

and I expect to obtain this:

New York es li max grand cité in li USA.

Li cité esset fundet in li annu 1624.

It have 8 085 742 habitantes in li annu 2000.

What version of the product are you using? On what operating system?

3.1.01-SNAPSHOT but I have the same output with others.

Original issue reported on code.google.com by diego...@gmail.com on 28 Jan 2014 at 5:00