Difference between revisions of "Issue:Article Titles/content added as sub bullets"
(adding \code example to "Problem" section) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
|Extension = DPL | |Extension = DPL | ||
|Version = 1.7.4 | |Version = 1.7.4 | ||
− | |Description = When bringing information from a | + | |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 |
}} | }} | ||
== Problem == | == Problem == | ||
calling DPL like this: | calling DPL like this: | ||
+ | |||
+ | <nowiki> | ||
<dpl> | <dpl> | ||
ordermethod=firstedit | ordermethod=firstedit | ||
Line 19: | Line 21: | ||
addpagecounter=true | addpagecounter=true | ||
</dpl> | </dpl> | ||
+ | </nowiki> | ||
and get output like this sometimes: | and get output like this sometimes: | ||
Line 24: | Line 27: | ||
** some info | ** some info | ||
** further info [[...more]] | ** further info [[...more]] | ||
− | ** [[Test_article2]] (40 views) | + | ** [[Test_article2]] (40 views) |
== Reply == | == 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. | ||
+ | |||
+ | [[User:Gero|Gero]] 07:07, 22 April 2009 (UTC) |
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)