From: Akai <ope...@gm...> - 2015-06-01 21:56:15
|
Good catch! I'll test it, and get it merged in as soon as I can (hopefully tomorrow) Thanks On 5/29/2015 3:24 PM, Hauke Fath wrote: > Hi, > > taking the readmore plugin for a spin, I noticed that the text on the > "More..." page is always rendered in the vanilla html flavour. The > following patch, modelled after other plugins, fixes that and makes it > use > the current flavour, if set: > > > --- Pyblosxom/plugins/readmore.py.orig 2013-07-31 > 00:53:58.000000000 +0000 > +++ Pyblosxom/plugins/readmore.py > @@ -209,7 +209,11 @@ def cb_story(args): > # otherwise we replace the breakpoint with the template > base_url = config["base_url"] > file_path = entry["file_path"] > - flavour = config.get("default_flavour", "html") > + > + # Set and use current (or default) flavour for full entry > + flavour = data.get( > + "flavour", config.get("default_flavour", "html")) > + > url = '%s/%s.%s' % (base_url, file_path, flavour) > > link = (template % {"url": url, > > > (see also > <http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/www/py-blosxom/patches/patch-Pyblosx > > om_plugins_readmore.py>). Please apply. > > Cheerio, > hauke > > > -- > "It's never straight up and down" (DEVO) > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Pyblosxom-devel mailing list > Pyb...@li... > https://lists.sourceforge.net/lists/listinfo/pyblosxom-devel |