X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/f7f5c8fbb195101a0eb6352be3043b0d44f3ded9..40fb2103c2986cbb91add4afed635886c4f87ae5:/etc/ps-prin1.ps diff --git a/etc/ps-prin1.ps b/etc/ps-prin1.ps index dd922b9338..8e9479e112 100644 --- a/etc/ps-prin1.ps +++ b/etc/ps-prin1.ps @@ -770,16 +770,28 @@ StandardEncoding 46 82 getinterval aload pop /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