Commit 41aa0183 authored by Fred Drake's avatar Fred Drake

fix some nuissance formatting problems for the "alltt" environment;

there's still a bug for the environment, but that's worked around in
this change as well
parent d37154f7
...@@ -2022,9 +2022,12 @@ sub do_env_alltt{ ...@@ -2022,9 +2022,12 @@ sub do_env_alltt{
$_ = &translate_environments($_); $_ = &translate_environments($_);
$_ = &translate_commands($_) if (/\\/); $_ = &translate_commands($_) if (/\\/);
# preserve space-runs, using &nbsp; # remove spurious <BR> someone sticks in; not sure where they
while (s/(\S) ( +)/$1$2;SPMnbsp;/g){}; # actually come from
s/(<BR>) /$1;SPMnbsp;/g; # XXX the replacement space is there to accomodate something
# broken that inserts a space in front of the first line of
# the environment
s/<BR>/ /gi;
$_ = join('', $closures, $alltt_start, $local_reopens $_ = join('', $closures, $alltt_start, $local_reopens
, $_ , $_
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment