|
From: | Jonathan Seidel |
Subject: | Output formatting issue in a2ps |
Date: | Tue, 12 Jan 2016 16:15:49 +0000 |
Hi… Just started using a2ps (nice) and have a problem:
The output font switches between a fixed-width font to a proportional font every time there is a single quote in the output.
For example:
If cmp_target =~ {cmp_expected}/
cmp_result = ‘Passed’
else
cmp_result = ‘Failed’
End
(If email hoses the display, then the words “Passed” and “Failed” above are fixed-width while the rest is proportional font.)
This happens even if the single-quote is contained in a quoted string or in a regular _expression_ string, such as:
cmp_expected = expected_value.gsub(/["',@#%&=_\s]/, ‘')
Printing to an HP color printer with default options; installed through Homebrew on Mac OS X 10.11.2
Configuration status of a2ps 4.14 =================================
Sheets: ------- medium = A4, landscape page layout = 2 x 1, rows first borders = yes file alignment = page interior margin = 0
Virtual pages: -------------- number lines = no format = 80 characters per line tabulation size = 8 non printable format = caret (i.e., `^C', `M-^C' etc.)
Headers: -------- header = %a left footer = #?l!%E!#?v|%E|%s./%s#|! footer = #?l|#!s-$f-, -|| right footer = #?l!%s./%s#!#?v|%s./%s#|%E|! left title = #?2||$e $T| center title = #?1|$t1|$n| right title = #?2|$t2|$Q| under lay =
Input: ------ truncate lines = no interpret = yes end of line = any type encoding = ISO-8859-1 document title = #10!f|$n|, | prologue = bw print anyway = no delegating = yes
Pretty-printing: ---------------- style sheet = selected automatically highlight level = normal strip level = 0
Output: ------- destination = sent to the default printer version control = numbered backups of files already numbered, and simple of others backup suffix = ~
PostScript: ----------- magic number = %!PS-Adobe-3.0 Printer Description (PPD) = selected automatically default PPD = level1 page label format = #{pl.short} number of copies = 1 sides per sheet = Simplex page device definitions = statusdict definitions = page prefeed = no
Internals: ---------- verbosity level = 2 file command = /usr/bin/file library path = /Users/yc98js1/.a2ps /usr/local/Cellar/a2ps/4.14/share/a2ps/sheets /usr/local/Cellar/a2ps/4.14/share/a2ps/ps /usr/local/Cellar/a2ps/4.14/share/a2ps/encoding /usr/local/Cellar/a2ps/4.14/share/a2ps/afm /usr/local/Cellar/a2ps/4.14/share/ogonkify/afm /usr/local/Cellar/a2ps/4.14/share/a2ps/ppd /usr/local/Cellar/a2ps/4.14/share/a2ps/fonts /usr/local/Cellar/a2ps/4.14/share/ogonkify/fonts /usr/local/Cellar/a2ps/4.14/share/a2ps |
[Prev in Thread] | Current Thread | [Next in Thread] |