>>>>> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes:

Andre> On Tue, Nov 20, 2001 at 11:31:54AM +0100, Jean-Marc Lasgouttes
Andre> wrote:
John> I suppose this would be utterly trivial to code, unless I'm
John> missing something ?
>>  How do you add the % in front of all lines? I do not say it is
>> very difficult, but it does not strike me as 'utterly trivial'.

Andre> 1. Hack: Write output to a ostringstream, replace every '\n' by
Andre> '\n%' plus/minus one extra.

Andre> 2. Option: Write a custom streambuffre that inserts '\n%'
Andre> instead of '\n' and one upon creation.

We definitely need a custom stream that would do all these things
behind the scene for us (also count lines, break lines, break unwanted
'? ligatures...), but it needs work to get right.

JMarc

Reply via email to