• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

RWSnippet class for links in export XML

MaxSupernova

Well-known member
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:
Back
Top