Hi Akim, > >> But moving all the output functions on top of ostream would be > >> quite painful. I really wonder if I should not try to synchronize > >> the ostream for style, and the FILE* for output. > > > > What I can offer are two methods on the styled ostreams: > > - a flush method that puts the target into the default state, so that > > you can print any string you like (including newlines) through a > > FILE*, > > - a flush_to_current_style method that puts the target into the style > > that corresponds to the currently active CSS classes, so that you > > can print any string that does NOT contain newlines. > > That sounds like a good option.
This is now implemented, in the new tarball https://haible.de/bruno/gnu/libtextstyle-0.6.tar.gz Feedback welcome! Bruno
