#51518 mgp: prefers to break lines at %cont's than at whitespaces

Package:
mgp
Source:
mgp
Description:
MagicPoint — an X11-based presentation tool
Submitter:
Yann Dirson
Date:
2005-07-18 03:17:47 UTC
Severity:
normal
#51518#5
Date:
1999-11-29 15:15:50 UTC
From:
To:
The following line gets its line break at the %cont, that is _after_
the '(', whereas it should have been _before_ the '('.  %cont is
intended to insert a directive _without_ breaking a line, isn't it ?

====
	symbolic constants not used (
%cont, font "tt"
access(...,0); open(...,1);...
%cont, font "std"
)
====

#51518#10
Date:
1999-11-29 17:45:02 UTC
From:
To:
At Mon, 29 Nov 1999 16:15:50 +0100 (MET),
Yann Dirson - LOGATIQUE <Yann.Dirson@France.Sun.COM> wrote:

Hmm, but the following example will line break after access(...,0);
----------------------------------------------------------------
%include "default.mgp"
%page


	symbolic constants not used (
%cont, font "tt"
access(...,0); open(...,1);...
%cont, font "std"
)
----------------------------------------------------------------

I'm not sure but I think %cont directive is not non-breakable, but
soft line concatination, so if first line is too long, it would get
line break at %cont.
Anyway, I'll ask upstream developers.

Thanks,
Fumitoshi UKAI

#51518#13
Date:
1999-11-29 17:45:02 UTC
From:
To:
At Mon, 29 Nov 1999 16:15:50 +0100 (MET),
Yann Dirson - LOGATIQUE <Yann.Dirson@France.Sun.COM> wrote:

Hmm, but the following example will line break after access(...,0);
----------------------------------------------------------------
%include "default.mgp"
%page


	symbolic constants not used (
%cont, font "tt"
access(...,0); open(...,1);...
%cont, font "std"
)
----------------------------------------------------------------

I'm not sure but I think %cont directive is not non-breakable, but
soft line concatination, so if first line is too long, it would get
line break at %cont.
Anyway, I'll ask upstream developers.

Thanks,
Fumitoshi UKAI

#51518#18
Date:
1999-11-30 09:03:15 UTC
From:
To:
Fumitoshi UKAI writes:
 > At Mon, 29 Nov 1999 16:15:50 +0100 (MET),
 > Yann Dirson - LOGATIQUE <Yann.Dirson@France.Sun.COM> wrote:
 >
 > > The following line gets its line break at the %cont, that is _after_
 > > the '(', whereas it should have been _before_ the '('.  %cont is
 > > intended to insert a directive _without_ breaking a line, isn't it ?
 >
 > Hmm, but the following example will line break after access(...,0);

Ah yes, it does.  Probably I had the following in effect at this time:

%deffont "std" xfont "helvetica-medium-r", tfont "arial.ttf", size 4
%deffont "tt" xfont "courier-medium-r", tfont "courbd.ttf", size 3

I suppressed the %size's since then, because I then get
inconsistencies with itemized stuff which stays at %size 5.

 > I'm not sure but I think %cont directive is not non-breakable, but
 > soft line concatination, so if first line is too long, it would get
 > line break at %cont.

Maybe there should be a special directive to explicitely tell whether
breakable or not, but I don't think it's necessary.  I'd rather think
that breakable places are whitespace on only whitespace.  If I need a
whitespace at a %cont, then I explicitely add one, and then I'd accept
the line to be broken at that place.

 > Anyway, I'll ask upstream developers.

Thanks,
--
      /\       Yann Dirson            <ydirson@sunchorus.france.sun.com>
     \\ \
    \ \\ /     Sun Microsystems Inc.               <http://www.sun.com/>
   / \/ / /    Consumer and Embedded / ChorusOS Support
  / /   \//\
  \//\   / /   Phone: +33 139 44 74 50
   / / /\ /    Phone: 44450
    / \\ \
     \ \\
      \/       Subcontractant from Logatique  <http://www.logatique.fr/>

#51518#21
Date:
2000-04-26 11:20:56 UTC
From:
To:
This bug has been forwarded to mgp-users-jp 00660
http://www.mew.org/archive/mgp-users-jp/A/msg00656.html