bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 0/3] Various clean up in preparation for libtextstyle


From: Bruno Haible
Subject: Re: [PATCH 0/3] Various clean up in preparation for libtextstyle
Date: Wed, 13 Mar 2019 02:03:43 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-141-generic; KDE/5.18.0; x86_64; ; )

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]