Angus Leeming wrote: > However, since you ask, is there any reason for noTrivlistCentering to be a > paragraph member function? Why not: > > namespace {
no reason. can you explain the pros and cons in short, please? > Shame that your change messes up the code. > > How about client code that looked like: this looks very sophisticated :-) I have vaguely thought about something like this, but then I was not shure if it was worth the effort. Probably it is, though. I will happily adapt this (if we agree on the fix as such). Some question out of interest: 1. what is the column += thing actually doing? the value is the length of the string (i.e. the tag)? 2. I do not quite understand this part: > char const * const * const envs { { "flushleft", "raggedright" }, > { "flushright", "raggedleft" }, > { "center", "centering" } what does this imply? > string const corrected_env(string const & suffix, string const & env, > Inset const * inset) > { > string output = suffix + "{"; > if (noTrivlistCentering(inset)) > // use envs[?][1] and therefore: how can I fill these gaps? > else > // use envs[?][0] > output += "}"; > return output; Thanks for clarification. Juergen.