Re: Section titles, with or without multiple sections in document

Ben Finney <[email protected]>
Newsgroups gmane.text.docutils.user
Message-ID <[email protected]>
David Goodger <[email protected]> writes:

> On Wed, Jan 7, 2015 at 7:52 PM, Ben Finney <[email protected]> wrote:
> > Okay, that is a setting on the Publisher (and, according to the
> > docs, normally set by configuration file or command-line).
> >
> > For the task at hand (if it matters, I am transforming a changelog
> > document to structured release data), I want all the settings to be
> > internally managed. […]
> >
> > In order to modify that setting (‘doctitle_xform’), do I need to make a
> > custom Publisher class too? Or can I have the Writer somehow override
> > it?
>
> Just pass the configuration setting to the standard Publisher or
> convenience function:
> http://docutils.sourceforge.net/docs/api/publisher.html#configuration

What I'd like is for any code using this custom Writer, to get that
behaviour by default (i.e. not need to even know about the
‘doctitle_xform’ option). Can the Writer take care of that option in
such a way that the client code doesn't need to know about it?

-- 
 \      “Shepherds … look after their sheep so they can, first, fleece |
  `\   them and second, turn them into meat. That's much more like the |
_o__)      priesthood as I know it.” —Christopher Hitchens, 2008-10-29 |
Ben Finney


------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Docutils-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
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.