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 8:39 PM, Ben Finney <[email protected]> wrote:
> > 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?
>
> Yes, it can (just monkey-patch the settings object), but it shouldn't.

Fair enough. I can understand it makes the API clearer.

> Don't you have a front-end app? It should do the configuration.

Well, the extra levels of indirection complicate my unit tests. But not
hugely, and the result is still good.

Thanks for the help.

-- 
 \         “I turned to speak to God/About the world's despair; But to |
  `\   make bad matters worse/I found God wasn't there.” —Robert Frost |
_o__)                                                                  |
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.