[system] / trunk / pg / macros / PGbasicmacros.pl Repository:
ViewVC logotype

Diff of /trunk/pg/macros/PGbasicmacros.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1757 Revision 1758
1425 1425
1426 ## remove leading and trailing spaces so that HTML mode will 1426 ## remove leading and trailing spaces so that HTML mode will
1427 ## not include unwanted spaces as per Davide Cervone. 1427 ## not include unwanted spaces as per Davide Cervone.
1428 $in =~ s/^\s+//; 1428 $in =~ s/^\s+//;
1429 $in =~ s/\s+$//; 1429 $in =~ s/\s+$//;
1430 ## If it ends with a backslash, there should be another space
1431 ## at the end
1432 if($in =~ /\\$/) { $in .= ' ';}
1430 1433
1431 # some modes want the delimiters, some don't 1434 # some modes want the delimiters, some don't
1432 my $in_delim = $mode eq "inline" 1435 my $in_delim = $mode eq "inline"
1433 ? "\\($in\\)" 1436 ? "\\($in\\)"
1434 : "\\[$in\\]"; 1437 : "\\[$in\\]";

Legend:
Removed from v.1757  
changed lines
  Added in v.1758

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9