# HG changeset patch # User Kenichi Handa # Date 1064575696 0 # Node ID 1f7ce29b19bdf6c8c21bc1fcac4c02f517b2cc10 # Parent c75e3c6b608a7b4cdc913c8ed52a5b37117e655d (HeaderOrFooterTextLines): Handle multiple strings in a line. diff -r c75e3c6b608a -r 1f7ce29b19bd etc/ps-prin1.ps --- a/etc/ps-prin1.ps Fri Sep 26 11:24:10 2003 +0000 +++ b/etc/ps-prin1.ps Fri Sep 26 11:28:16 2003 +0000 @@ -767,16 +767,28 @@ /is_right exch def HFStart moveto { % ---- process the lines - aload pop - exch F + dup 0 get F gsave - dup xcheck{exec}if is_right{ - dup stringwidth pop - PrintHeaderWidth exch sub HFPad HFPad add sub 0 rmoveto + PrintHeaderWidth HFPad HFPad add sub 0 rmoveto + dup{ + dup type /nametype eq{ + pop + }{ + dup xcheck{exec}if + stringwidth pop neg 0 rmoveto + }ifelse + } forall }if HFColor SetColor - show + { + dup type /nametype eq { + pop + }{ + dup xcheck{exec}if + show + } ifelse + } forall grestore 0 HFLineHeight neg rmoveto }forall