Zinn wrote:
It is a question about text formatting. Multiple spaces and new lines are ignored in Html.
In Html text formatting are not done with spaces and new lines. Text formatting are done with paragraph, list, tables and CSS.
Normally text are grouped in paragraph which allow to have line breaks but it is not grouped with line breaks. Line breaks should be used rarely.
The sample 1 2 3 What is Blackbox is translated wrong. A better translation uses list <li>, but I can accept line breaks here.
The original translation with paragraph is much better, even the result of the formatting looks wrong.
It is like the same situation as if you write a letter with the typewriter. There you have a line break at each line.
Now you change from typewriter to word and write the same letter. It is wrong to have a line break at the end of each line.
- Helmut
Helmut, I cannot follow your arguments.
XhtmlExporter preserves multiple spaces and multiple new lines.
It does its best to create an html document that looks as similar as possible to the original BB document.
It is, however, not an artificial intelligence tool that corrects any mistakes in the formatting of a BB document.
It simply tries to preserve its appearance as good as possible and with reasonable effort.
In BB documents you can also do the text formatting with paragraphs and rulers instead of using line breaks.
And in this case XhtmlExporter does not emit any line breaks but only paragraphs.
> The sample 1 2 3 What is Blackbox is translated wrong
This would require an artificial intelligence tool. Way beyond our scope.
> The original translation with paragraph is much better, even the result of the formatting looks wrong.
Probably, what you mean is the line spacing, which is currently not defined by the XhtmlExporter.
The browser uses a default and this is a bit smaller than what you see in BB. I think it could be adjusted but don't know the details. At least equally important is the paragraph lead space. This is now exported to html and creates about the same white space between paragraphs as in BB.
- Josef