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

[mgp-users 01231] Re: Rendering bugs in 1.10a



I hope this patch will fix the problem.

Thanks,
--
Yoshifumi Nishida
nishida@csl.sony.co.jp

From: Yoshifumi Nishida <nishida@csl.sony.co.jp>
Subject: [mgp-users 01225] Re: Rendering bugs in 1.10a
Date: Tue, 01 Jul 2003 23:41:50 -0700 (PDT)
Message-ID: <>

 > Hi,
 > I found some bugs related to the tab and default things.
 > There should not be mixed results. I will fix it so that %tab can override 
 > %default correctly.
 > But I prefer to avoid using %tab and %default to the same lines, since it 
 > makes your presentation scripts complicate.
 > For intra-line space, I'd like to recommend you to use the empty line 
 > rather than use %vgap.
 > --
 > Yoshifumi Nishida
 > nishida@csl.sony.co.jp


*** parse.c.orig	2003-07-11 00:28:52.000000000 -0700
--- parse.c	2003-07-11 00:26:44.000000000 -0700
***************
*** 1045,1052 ****
  			continue;
  		line = page_attribute[page].pg_linenum;
  		for (l = 0; l <= line; l++) {
  			ch = &page_control[page][l];
! 			if (default_control[l]) {
  				ctlinsert(ch, ctlcopy(default_control[l]));
  			}
  		}
--- 1045,1064 ----
  			continue;
  		line = page_attribute[page].pg_linenum;
  		for (l = 0; l <= line; l++) {
+ 			int contseen;
+ 			contseen = 0;	
  			ch = &page_control[page][l];
! 			/* 
! 			 * if this line contains CTL_CONT, we don't add 
! 			 * default directive to this line 
! 			 */
! 			for (cp = page_control[page][l]; cp; cp = cp->ct_next) {
! 				if (cp->ct_op == CTL_CONT) {
! 					contseen++;
! 					break;
! 				}
! 			}
! 			if (default_control[l] && !contseen) {
  				ctlinsert(ch, ctlcopy(default_control[l]));
  			}
  		}