Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c1137454
Commit
c1137454
authored
Mar 05, 1998
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
For verbatim text, don't bounce down a size.
parent
56896dd5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
Doc/perl/python.perl
Doc/perl/python.perl
+2
-4
Doc/python.perl
Doc/python.perl
+2
-4
No files found.
Doc/perl/python.perl
View file @
c1137454
...
@@ -366,8 +366,7 @@ sub make_str_index_entry{
...
@@ -366,8 +366,7 @@ sub make_str_index_entry{
# (Used with LaTeX2HTML 96.1*)
# (Used with LaTeX2HTML 96.1*)
sub
replace_verbatim
{
sub
replace_verbatim
{
# Modifies $_
# Modifies $_
local
(
$prefix
,
$suffix
)
=
("
\n
<p><dl><dd><pre><font size=-1>
\n
",
local
(
$prefix
,
$suffix
)
=
("
\n
<p><dl><dd><pre>
\n
",
"
</pre></dl>
");
"
</font></pre></dl>
");
s/$verbatim_mark(verbatim)(\d+)/$prefix$verbatim{$2}$suffix/go
;
s/$verbatim_mark(verbatim)(\d+)/$prefix$verbatim{$2}$suffix/go
;
s/$verbatim_mark(rawhtml)(\d+)/$verbatim{$2}/
ego
;
# Raw HTML
s/$verbatim_mark(rawhtml)(\d+)/$verbatim{$2}/
ego
;
# Raw HTML
}
}
...
@@ -375,8 +374,7 @@ sub replace_verbatim {
...
@@ -375,8 +374,7 @@ sub replace_verbatim {
# (Used with LaTeX2HTML 98.1)
# (Used with LaTeX2HTML 98.1)
sub
replace_verbatim_hook
{
sub
replace_verbatim_hook
{
# Modifies $_
# Modifies $_
local
(
$prefix
,
$suffix
)
=
("
\n
<p><dl><dd><font size=-1>
",
local
(
$prefix
,
$suffix
)
=
("
\n
<p><dl><dd>
",
"
</dl>
");
"
</font></dl>
");
s/$math_verbatim_rx/&put_comment("MATH: ".$verbatim{$1})/
eg
;
s/$math_verbatim_rx/&put_comment("MATH: ".$verbatim{$1})/
eg
;
s/$verbatim_mark(\w*[vV]erbatim\*?)(\d+)\#/$prefix$verbatim{$2}$suffix/go
;
s/$verbatim_mark(\w*[vV]erbatim\*?)(\d+)\#/$prefix$verbatim{$2}$suffix/go
;
# Raw HTML, but replacements may have protected characters
# Raw HTML, but replacements may have protected characters
...
...
Doc/python.perl
View file @
c1137454
...
@@ -366,8 +366,7 @@ sub make_str_index_entry{
...
@@ -366,8 +366,7 @@ sub make_str_index_entry{
# (Used with LaTeX2HTML 96.1*)
# (Used with LaTeX2HTML 96.1*)
sub
replace_verbatim
{
sub
replace_verbatim
{
# Modifies $_
# Modifies $_
local
(
$prefix
,
$suffix
)
=
("
\n
<p><dl><dd><pre><font size=-1>
\n
",
local
(
$prefix
,
$suffix
)
=
("
\n
<p><dl><dd><pre>
\n
",
"
</pre></dl>
");
"
</font></pre></dl>
");
s/$verbatim_mark(verbatim)(\d+)/$prefix$verbatim{$2}$suffix/go
;
s/$verbatim_mark(verbatim)(\d+)/$prefix$verbatim{$2}$suffix/go
;
s/$verbatim_mark(rawhtml)(\d+)/$verbatim{$2}/
ego
;
# Raw HTML
s/$verbatim_mark(rawhtml)(\d+)/$verbatim{$2}/
ego
;
# Raw HTML
}
}
...
@@ -375,8 +374,7 @@ sub replace_verbatim {
...
@@ -375,8 +374,7 @@ sub replace_verbatim {
# (Used with LaTeX2HTML 98.1)
# (Used with LaTeX2HTML 98.1)
sub
replace_verbatim_hook
{
sub
replace_verbatim_hook
{
# Modifies $_
# Modifies $_
local
(
$prefix
,
$suffix
)
=
("
\n
<p><dl><dd><font size=-1>
",
local
(
$prefix
,
$suffix
)
=
("
\n
<p><dl><dd>
",
"
</dl>
");
"
</font></dl>
");
s/$math_verbatim_rx/&put_comment("MATH: ".$verbatim{$1})/
eg
;
s/$math_verbatim_rx/&put_comment("MATH: ".$verbatim{$1})/
eg
;
s/$verbatim_mark(\w*[vV]erbatim\*?)(\d+)\#/$prefix$verbatim{$2}$suffix/go
;
s/$verbatim_mark(\w*[vV]erbatim\*?)(\d+)\#/$prefix$verbatim{$2}$suffix/go
;
# Raw HTML, but replacements may have protected characters
# Raw HTML, but replacements may have protected characters
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment