Senior Member
Join Date: Mar 2014
Posts: 411
|
Links to other topics are now included in the XML, but are the "RWSnippet" class, the same as the rest of the plain text part of the snippet.
In the following example, "AMC", "Aldolore Station" and "Rone Varan" are links within the sentence. "The Aldolore Mining Cartel, also known as the AMC, is a corporation that controls Aldolore Station, Rone Varan and the surrounding asteroid fields." The XML is: <contents> <p class="RWDefault"> <span class="RWSnippet">The Aldolore Mining Cartel, also known as the </span> <span class="RWSnippet">AMC</span> <span class="RWSnippet">, is a corporation that controls </span> <span class="RWSnippet">Aldolore Station</span> <span class="RWSnippet">, </span> <span class="RWSnippet">Rone Varan</span> <span class="RWSnippet">and the surrounding asteroid fields. </span> </p> </contents> Is there any purpose to this? Is this a bug? Why is the link text exported as the same class as the sentence it is contained in? It makes this information useless. It actually makes the information LESS useful than plain text. There's no way to distinguish which bits of text are links or the titles of other snippets. Positioning or other styles used on the RWSnippet class will now be much more difficult to use. If I want to add positioning or margins or padding to each Snippet, that gets completely broken by having 5 spans with the RWSnippet class in one single line of text. It would be of more use to either: - eliminate the span around links and just include them as part of the text, which will shrink the filesize and reduce complexity, as well as making markup much easier because each snippet will be one span. - mark the span class as a link or some other type so that it can be interpreted or styled as the user desires. The latter is preferable. Last edited by MaxSupernova; January 25th, 2017 at 09:50 AM. |
#1 |
Thread Tools | |
Display Modes | |
|
|