summaryrefslogtreecommitdiff
path: root/Build/source/utils/chktex/chktex-1.6.6/MakeHTML.pl
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/chktex/chktex-1.6.6/MakeHTML.pl')
-rw-r--r--Build/source/utils/chktex/chktex-1.6.6/MakeHTML.pl20
1 files changed, 20 insertions, 0 deletions
diff --git a/Build/source/utils/chktex/chktex-1.6.6/MakeHTML.pl b/Build/source/utils/chktex/chktex-1.6.6/MakeHTML.pl
new file mode 100644
index 00000000000..6bdbadcf127
--- /dev/null
+++ b/Build/source/utils/chktex/chktex-1.6.6/MakeHTML.pl
@@ -0,0 +1,20 @@
+# Remove parts of code enclosed in %latex/%endlatex tags
+
+$latexonly = 0;
+
+while(<>)
+{
+ $latexonly = 1 if /^%latex/i;
+ $latexonly = 0 if /^%endlatex/i;
+
+
+ if($latexonly) {
+ if(/^%!(.*)/)
+ {
+ print $1;
+ }
+ }
+ else {
+ print;
+ }
+}