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
fe536f53
Kaydet (Commit)
fe536f53
authored
Nis 25, 2008
tarafından
Mark Dickinson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue 2635: fix bug in the fix_sentence_endings option to textwrap.fill.
üst
65134662
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
test_textwrap.py
Lib/test/test_textwrap.py
+4
-0
textwrap.py
Lib/textwrap.py
+1
-0
NEWS
Misc/NEWS
+4
-0
No files found.
Lib/test/test_textwrap.py
Dosyayı görüntüle @
fe536f53
...
@@ -129,6 +129,10 @@ What a mess!
...
@@ -129,6 +129,10 @@ What a mess!
expect
=
[
'And she said, "Go to hell!" Can you believe that?'
]
expect
=
[
'And she said, "Go to hell!" Can you believe that?'
]
self
.
check
(
wrapper
.
wrap
(
text
),
expect
)
self
.
check
(
wrapper
.
wrap
(
text
),
expect
)
text
=
'File stdio.h is nice.'
expect
=
[
'File stdio.h is nice.'
]
self
.
check
(
wrapper
.
wrap
(
text
),
expect
)
def
test_wrap_short
(
self
):
def
test_wrap_short
(
self
):
# Wrapping to make short lines longer
# Wrapping to make short lines longer
...
...
Lib/textwrap.py
Dosyayı görüntüle @
fe536f53
...
@@ -90,6 +90,7 @@ class TextWrapper:
...
@@ -90,6 +90,7 @@ class TextWrapper:
sentence_end_re
=
re
.
compile
(
r'[
%
s]'
# lowercase letter
sentence_end_re
=
re
.
compile
(
r'[
%
s]'
# lowercase letter
r'[\.\!\?]'
# sentence-ending punct.
r'[\.\!\?]'
# sentence-ending punct.
r'[\"\']?'
# optional end-of-quote
r'[\"\']?'
# optional end-of-quote
r'\Z'
# end of chunk
%
string
.
lowercase
)
%
string
.
lowercase
)
...
...
Misc/NEWS
Dosyayı görüntüle @
fe536f53
...
@@ -43,6 +43,10 @@ Extensions Modules
...
@@ -43,6 +43,10 @@ Extensions Modules
Library
Library
-------
-------
- Issue #2635: Fix bug in 'fix_sentence_endings' textwrap.fill option,
where an extra space was added after a word containing (but not
ending in) '.', '!' or '?'.
- Add from_buffer() and from_buffer_copy() class methods to ctypes
- Add from_buffer() and from_buffer_copy() class methods to ctypes
data types
data types
...
...
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