Issue:Article Titles/content added as sub bullets

From FollowTheScore
Jump to: navigation, search
Description: When bringing information from a heading that contains a bulleted list that is cut off by a character limit, the next article in the DPL list appears as a sub-bullet (it looks like content to the previous article) since the
    element is not closed
Extension / Version: DPL   /   1.7.4
Type / Status: Bug   /   closed

Problem

calling DPL like this:

<dpl> ordermethod=firstedit order=descending category=test notnamespace=Template | Category nottitlematch=%_test noresultsheader = Sorry, no results yet includepage= #Description[500 ...more] addpagecounter=true </dpl>

and get output like this sometimes:

Reply

I am afraid this is not easy to fix. Cutting wiki text at an arbitrary point is not a simple task because it may contain open tags which will spoil the resulting document when the cut text is pasted into a larger document (i.e. the DPL result). Therefore DPL tries a simple heuristic approach to find the last 'balanced tag' and cuts the wiki text at that point instead of at the exact character limit count. If the original wiki text contains complicated nested tag structures this approach may fail and lead to the effect you describe.

If you upload an example document to this wiki which demonstrates the effect I may be able to imptove the heuristic a little. If you can improve the heuristic yourself I will adopt the change to the next DPL version.

Gero 07:07, 22 April 2009 (UTC)