[llvm-commits] CVS: llvm/test/Programs/GenerateReport.pl
Chris Lattner
lattner at cs.uiuc.edu
Sun Sep 21 11:58:01 PDT 2003
Changes in directory llvm/test/Programs:
GenerateReport.pl updated: 1.14 -> 1.15
---
Log message:
Auto escape characters that latex doesn't like
---
Diffs of the changes:
Index: llvm/test/Programs/GenerateReport.pl
diff -u llvm/test/Programs/GenerateReport.pl:1.14 llvm/test/Programs/GenerateReport.pl:1.15
--- llvm/test/Programs/GenerateReport.pl:1.14 Fri Aug 22 19:31:09 2003
+++ llvm/test/Programs/GenerateReport.pl Sun Sep 21 11:56:55 2003
@@ -250,6 +250,9 @@
$Val = &{$LatexColumnFormat{$ColNum}}($Val);
}
+ # Escape illegal latex characters
+ $Val =~ s/([%#])/\\$1/g;
+
printf " & %-$FieldWidths[$ColNum]s", $Val;
}
goto Done;
More information about the llvm-commits
mailing list