[#1401 Patch-proposal: list-style-image:none]

[email protected] (Soren Roug)
Newsgroups gmane.comp.web.zope.zwiki
Message-ID <20080131041051-0800__18844.1804064952$1201781551$gmane$org@zwiki.org>
In MoinMoin, if you indent a paragraph it will show indented in the HTML output also. This is done with an <UL> where the list-type is set to none.
However, if the website has a rule in its CSS that all UL tags should show a graphic as the bullet, this graphic will still show according to the CSS specification.

I therefore propose:

Change in pagetypes/moin.py::
        if indented_only:
            result.append(self.formatter.listitem(1, css_class=css_class,
               style="list-style-type:none"))

To::
        if indented_only:
            result.append(self.formatter.listitem(1, css_class=css_class,
               style="list-style-type:none;list-style-image:none"))

Change in pagetypes/moin.py::

    if self.list_types and not self.in_li:
        self.request.write(self.formatter.listitem
           (1, style="list-style-type:none;"))

To::

    if self.list_types and not self.in_li:
        self.request.write(self.formatter.listitem
           (1, style="list-style-type:none;list-style-image:none"))

--
forwarded from http://zwiki.org/1401PatchProposalListStyleImageNone#[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.