On Wed, May 17, 2006 at 04:08:48PM +0000, Angus Leeming wrote:
> Enrico Forestieri <[EMAIL PROTECTED]> writes:
> > \font_encoding "T1'^M"
> > The attached patch corrects this bug.
>
> Rather than specify '\r\n' explicitly, isn't there a version of strip that
> removes all trailing whitespace? Or, alternatively, isn't there an
> os.environment.newline variable or somesuch.
I think you mean something like the attached.
--
Enrico
Index: lib/configure.py
===================================================================
--- lib/configure.py (revision 13854)
+++ lib/configure.py (working copy)
@@ -542,7 +542,8 @@ def checkLatexConfig(check_config, bool_
values = {}
for line in open('chkconfig.vars').readlines():
key, val = re.sub('-', '_', line).split('=')
- values[key] = val.strip("'\n")
+ val = val.strip()
+ values[key] = val.strip("'")
# chk_fontenc may not exist
try:
addToRC(r'\font_encoding "%s"' % values["chk_fontenc"])