From: Steve W. <sw...@wc...> - 2000-12-02 19:50:21
|
OK, I figured it out. This sh script you want to display contains lines like this: ####################################################### PhpWiki tries to interpret that as a line in a numbered list argument, i.e. it wants to render this as: 1. <no text here though> In fact it wants to render this as a numbered list 49 levels deep! This exceeds a hardcoded limit in the little stack class we use to track how many levels deep we are in nested lists like <UL>, <OL>, and <DT>. On line 327 in lib/stdlib.php, the limit is hardcoded to 10: if ($stack->cnt() > 10) { I just thought noone would ever want to nest lists that deep... and that assumption still holds true, since you don't want a numeric list, you want a comment line! This isn't quite a "bug" per se, more of a design limitation. What troubles me is that it seems obvious and intuitive to paste code samples into a Wiki like you did, but you don't want to render it in HTML, you want to render it in <pre></pre> tags. Indenting every line is a pain in the butt. I'll think about how to add this. In fact I know how (token substitution) but I don't know if we ever implemented this... it would probably work the same way we handle URLs. (I'm rambling at this point, so...) The way to deal with this is to indent with spaces like I mentioned before. cheers! sw On Sat, 2 Dec 2000, Steve Wainstead wrote: > > As a temporary fix, if you indent all the lines in the file with a space, > it will save OK, and it will render as well (as plain text, which for > source code is probably what you want. > > sw > > ...............................ooo0000ooo................................. > Hear FM quality freeform radio through the Internet: http://wcsb.org/ > home page: www.wcsb.org/~swain > > _______________________________________________ > Phpwiki-talk mailing list > Php...@li... > http://lists.sourceforge.net/mailman/listinfo/phpwiki-talk > ..............................ooo0000ooo................................. Hear FM quality freeform radio through the Internet: http://wcsb.org/ home page: www.wcsb.org/~swain |