On Tue, Jul 15, 2003 at 09:10:38AM +0200, Andre Poenitz spake thusly:
> 
> On Mon, Jul 14, 2003 at 09:52:12PM +0300, Martin Vermeer wrote:
> >     int i = 0;
> >     if (pt == "Comment") os << "%\n\\begin{comment}\n"; // remember to validate
> > -   if (pt == "Greyedout") os << "%\n\\textcolor[gray]{0.8}{";
> > +   if (pt == "Greyedout") os << "%\n\\color[gray]{0.8}";
> 
> Better:
> 
>       if (pt == "Greyedout")
>               os << "%\n\\color[gray]{0.8}";
> 
> Andre'

Improved patch, taking these things into account.

BTW in which directories should a changelog entry be added? All that
have a changed file? Or only the top one? (Irrelevant here.)


2003-07-21      Martin Vermeer <[EMAIL PROTECTED]>

        * insetnote.C: fixed greyout and conditionals layout foul-ups.


OK to apply?


Martin

Index: insetnote.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/insetnote.C,v
retrieving revision 1.27
diff -u -p -r1.27 insetnote.C
--- insetnote.C 8 Jul 2003 14:19:25 -0000       1.27
+++ insetnote.C 21 Jul 2003 07:33:55 -0000
@@ -142,17 +142,18 @@ int InsetNote::latex(Buffer const * buf,
        string const pt = params_.type;
 
        int i = 0;
-       if (pt == "Comment") os << "%\n\\begin{comment}\n"; // remember to validate
-       if (pt == "Greyedout") os << "%\n\\textcolor[gray]{0.8}{";
-       if (pt != "Note") {
+       if (pt == "Comment") 
+               os << "%\n\\begin{comment}\n"; // remember to validate
+       if (pt == "Greyedout") 
+               os << "%\n\\color[gray]{0.8}";
+       if (pt != "Note") 
                i = inset.latex(buf, os, runparams);
-       }
        if (pt == "Comment") {
                os << "%\n\\end{comment}\n";
                i += 3;
        }
        if (pt == "Greyedout") { 
-               os << "%\n}";
+               os << "\\normalcolor%\n}";
                i += 2;
        }
        return i;

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to