Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
dcb16ac0
Kaydet (Commit)
dcb16ac0
authored
Kas 10, 2004
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
override a bit of LaTeX2HTML so empty table cells don't disappear from
the output
üst
952f8808
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
l2hinit.perl
Doc/perl/l2hinit.perl
+43
-0
No files found.
Doc/perl/l2hinit.perl
Dosyayı görüntüle @
dcb16ac0
...
...
@@ -622,6 +622,49 @@ sub set_depth_levels {
%declarations);
# This is a modified version of what's provided by LaTeX2HTML; see the
# comment on the middle stanza for an explanation of why we keep our
# own version.
#
# This routine must be called once on the text only,
# else it will "eat up" sensitive constructs.
sub text_cleanup {
# MRO: replaced $* with /m
s/(\s*\n){3,}/\n\n/gom; # Replace consecutive blank lines with one
s/
<
(\/?)
P
>
\s*(\w)/
<
$
1P
>
\n$2/gom; # clean up paragraph starts and ends
s/$O\d+$C//go; # Get rid of bracket id's
s/$OP\d+$CP//go; # Get rid of processed bracket id's
s/(
<
!)?
--
?(
>
)?/(length($1) || length($2)) ? "$1--$2" : "-"/ge;
# Spacing commands
s/\\( |$)/ /go;
#JKR: There should be no more comments in the source now.
#s/([^\\]?)%/$1/go; # Remove the comment character
# Cannot treat \, as a command because , is a delimiter ...
s/\\,/ /go;
# Replace tilde's with non-breaking spaces
s/ *~/
/g;
# This is why we have this copy of this routine; the following
# isn't so desirable as the author/maintainers of LaTeX2HTML seem
# to think. It's not commented out in the main script, so we have
# to override the whole thing. In particular, we don't want empty
# table cells to disappear.
### DANGEROUS ?? ###
# remove redundant (not
<P></P>
) empty tags, incl. with attributes
#s/\n?
<
([^
PD
>
][^>]*)>\s*
<
\/\
1
>
//g;
#s/\n?
<
([^
PD
>
][^>]*)>\s*
<
\/\
1
>
//g;
# remove redundant empty tags (not
</P><P>
or
<TD>
or
<TH>
)
#s/
<
\/(
TT
|[^
PTH
][
A-Z
]+)
><
\
1
>
//g;
#s/
<
([^
PD
]+)(\
s
[^
>
]*)?>\n*
<
\/\
1
>
//g;
#JCL(jcl-hex)
# Replace ^^ special chars (according to p.47 of the TeX book)
# Useful when coming from the .aux file (german umlauts, etc.)
s/\^\^([^0-9a-f])/chr((64+ord($1))
&127)/ge;
s/\^\^([0-9a-f][0-9a-f])/chr(hex($1))/ge;
}
# This is used to map the link rel attributes LaTeX2HTML uses to those
# currently recommended by the W3C.
sub custom_REL_hook {
...
...
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