Difference between revisions of "Issue:Article Titles/content added as sub bullets"
Line 4: | Line 4: | ||
|Version = 1.7.4 | |Version = 1.7.4 | ||
|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 <ul> element is not closed | |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 <ul> element is not closed | ||
− | |Status = | + | |Status = closed |
}} | }} | ||
Latest revision as of 11:56, 3 July 2009
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
|
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:
- Test_article1 (41 views)
- some info
- further info ...more
- Test_article2 (40 views)
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)