summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-02-27 16:56:55 (GMT)
committerFred Drake <fdrake@acm.org>1998-02-27 16:56:55 (GMT)
commitec9200a2fed3436b405fbc24587e0a7e2b485f6f (patch)
tree6d94bf63cac4efd02bef9761990f6e88958398cf /Doc
parent05073e99abf417b44aa5b7b73ce0eb886621f53b (diff)
downloadcpython-ec9200a2fed3436b405fbc24587e0a7e2b485f6f.zip
cpython-ec9200a2fed3436b405fbc24587e0a7e2b485f6f.tar.gz
cpython-ec9200a2fed3436b405fbc24587e0a7e2b485f6f.tar.bz2
&do_cmd_deprecated: New function.
Attempt to get \setindexsubitem{} handled at the right time under LaTeX2HTML 98.1; should still be fine under 97.1*.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/myformat.perl14
1 files changed, 14 insertions, 0 deletions
diff --git a/Doc/myformat.perl b/Doc/myformat.perl
index da9dbd1..1a18e84 100644
--- a/Doc/myformat.perl
+++ b/Doc/myformat.perl
@@ -150,6 +150,17 @@ sub do_cmd_strong{
$_;
}
+sub do_cmd_deprecated{
+ # two parameters: \deprecated{version}{whattodo}
+ local($_) = @_;
+ local($any_next_pair_pr_rx3) = "$OP(\\d+)$CP([\\s\\S]*)$OP\\3$CP";
+ local($release,$action) = ($2, $4);
+ s/$next_pair_pr_rx$any_next_pair_pr_rx3//;
+ "<b>Deprecated since release $release.</b>"
+ . "\n$action<p>"
+ . $_;
+}
+
# file and samp are at the end of this file since they screw up fontlock.
# index commands
@@ -166,6 +177,9 @@ sub do_cmd_setindexsubitem{
$INDEX_SUBITEM = $2;
$_;
}
+if (defined &process_commands_wrap_deferred) {
+ &process_commands_wrap_deferred("setindexsubitem \# {}\n");
+}
sub do_cmd_indexii{
local($_) = @_;