Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2cafcbb

Browse files
committed
Remove \platformof support, since it's been removed from the LaTeX
style sheet. Small nits.
1 parent e82f5b3 commit 2cafcbb

1 file changed

Lines changed: 9 additions & 24 deletions

File tree

Doc/perl/python.perl

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ sub do_cmd_optional{
114114
# output files for users that read them over the network rather than
115115
# from local repositories.
116116

117+
# \file and \samp are at the end of this file since they screw up fontlock.
118+
117119
sub do_cmd_pytype{ return @_[0]; }
118120
sub do_cmd_makevar{ return @_[0]; }
119121
sub do_cmd_code{
@@ -164,6 +166,11 @@ sub do_cmd_kbd{
164166
return use_wrappers(@_[0], '<kbd>', '</kbd>'); }
165167
sub do_cmd_strong{
166168
return use_wrappers(@_[0], '<b>', '</b>'); }
169+
sub do_cmd_textbf{
170+
return use_wrappers(@_[0], '<b>', '</b>'); }
171+
sub do_cmd_textit{
172+
return use_wrappers(@_[0], '<i>', '</i>'); }
173+
167174

168175
sub do_cmd_refmodule{
169176
# Insert the right magic to jump to the module definition.
@@ -195,7 +202,6 @@ sub do_cmd_envvar{
195202
return "<span class=envvar>$aname\$$envvar</a></span>" . $_;
196203
}
197204

198-
199205
sub do_cmd_url{
200206
# use the URL as both text and hyperlink
201207
local($_) = @_;
@@ -248,9 +254,7 @@ sub do_cmd_versionchanged{
248254
}
249255

250256
#
251-
# These function handle platform dependency tracking. The first two implement
252-
# the \platform and \platformof macros, and the third is called at the end of
253-
# processing to fill in references to the platform of a module.
257+
# These function handle platform dependency tracking.
254258
#
255259
sub do_cmd_platform{
256260
local($_) = @_;
@@ -262,30 +266,13 @@ sub do_cmd_platform{
262266
. "\n class=platform>$platform</span>.</p>\n" . $_;
263267
}
264268

265-
sub do_cmd_platformof{
266-
local($_) = @_;
267-
next_optional_argument();
268-
my $module = next_argument();
269-
return "<tex2html-platformof><$module>" . $_;
270-
}
271-
272269
$IGNORE_PLATFORM_ANNOTATION = '';
273270
sub do_cmd_ignorePlatformAnnotation{
274271
local($_) = @_;
275272
$IGNORE_PLATFORM_ANNOTATION = next_argument();
276273
return $_;
277274
}
278275

279-
sub process_all_platformofs{
280-
while (/<tex2html-platformof><([^>]+)>/) {
281-
my $match = $&;
282-
my $module = $1;
283-
s/$match/<span\n class=platform>$ModulePlatforms{$module}<\/span>/;
284-
}
285-
}
286-
287-
288-
# file and samp are at the end of this file since they screw up fontlock.
289276

290277
# index commands
291278

@@ -1037,7 +1024,6 @@ sub process_all_localmoduletables{
10371024
}
10381025
sub process_python_state{
10391026
process_all_localmoduletables();
1040-
process_all_platformofs();
10411027
}
10421028

10431029

@@ -1047,7 +1033,7 @@ sub process_python_state{
10471033

10481034
sub do_env_seealso{
10491035
return "<div class=seealso>\n "
1050-
. "<p><b>See Also:</b></p>\n"
1036+
. "<p class=heading><b>See Also:</b></p>\n"
10511037
. @_[0]
10521038
. '</div>';
10531039
}
@@ -1098,7 +1084,6 @@ sub do_cmd_term{
10981084
methodline # [] # {} # {}
10991085
modulesynopsis # {}
11001086
platform # {}
1101-
platformof # [] # {}
11021087
samp # {}
11031088
setindexsubitem # {}
11041089
withsubitem # {} # {}

0 commit comments

Comments
 (0)