Commit Graph

47 Commits

Author SHA1 Message Date
Adam Turner
24e3b7c8c8 .read_text() -> .read_text(encoding='utf8') 2022-04-27 03:04:19 +01:00
Adam Turner
5775912455 Collapse single line docstrings 2022-02-20 03:13:45 +00:00
Adam Turner
6bb7b891a1 Remove copyright and licence fields 2022-02-20 03:06:23 +00:00
Adam Turner
5694e0ce60 Fix module docstring indentation 2022-02-20 00:35:13 +00:00
Adam Turner
4f5a3269a6 Fix module docstring first line 2022-02-20 00:11:08 +00:00
Adam Turner
6b8bccec59 Remove module titles in docstrings 2022-02-19 23:17:29 +00:00
Takeshi KOMIYA
b84771dcd2 A happy new year! 2022-01-01 18:45:03 +09:00
Takeshi KOMIYA
f996859420 A happy new year!
.. note::

   $ find sphinx tests LICENSE doc/conf.py -type f -exec sed -i '' -e 's/2007\-20../2007-2021/' {} \;
   $ git co sphinx/locale/**/*.js sphinx/templates/epub3/mimetype
2021-01-01 13:40:48 +09:00
François Freitag
0949735210
Sort imports with isort
Keep imports alphabetically sorted and their order homogeneous across
Python source files.

The isort project has more feature and is more active than the
flake8-import-order plugin.

Most issues caught were simply import ordering from the same module.
Where imports were purposefully placed out of order, tag with
isort:skip.
2020-11-11 13:19:05 +01:00
Takeshi KOMIYA
bdd08b1516 test: encoding="utf-8" is no longer needed on reading text 2020-02-01 12:25:49 +09:00
Takeshi KOMIYA
4dd8b1022f test: Use read_text() and read_bytes() 2020-02-01 11:58:51 +09:00
Takeshi KOMIYA
eaf495c3c4 A happy new year! 2020-01-01 14:27:43 +09:00
Takeshi KOMIYA
5a05cabd6a Fix #6867: text: extra spaces are inserted to hyphenated words on folding lines 2019-11-30 22:44:13 +09:00
Takeshi KOMIYA
c4c878303f encoding keyword for path.text() and path.write_text() is no longer needed 2019-01-03 10:58:07 +09:00
Takeshi KOMIYA
76e9f57c2e Merge branch '1.8' 2019-01-02 16:16:25 +09:00
Takeshi KOMIYA
1b1ebd2c75 A happy new year! 2019-01-02 16:00:30 +09:00
Jon Dufresne
bade33c7e4 Remove unnecessary encoding cookie from Python source files
In Python 3, the default encoding of source files is utf-8. The encoding
cookie is now unnecessary and redundant so remove it. For more details,
see the docs:

https://docs.python.org/3/howto/unicode.html#the-string-type

> The default encoding for Python source code is UTF-8, so you can
> simply include a Unicode character in a string literal ...

Includes a fix for the flake8 header checks to stop expecting an
encoding cookie.
2018-12-16 12:22:12 -08:00
Takeshi KOMIYA
c6bd84a614 refactor: Remove u-prefix from strings 2018-12-16 21:28:51 +09:00
Julien Palard
d527497b1f Moar tests 2018-10-23 18:41:08 +02:00
Julien Palard
9b30fc938d Working on text colspan and rowspan. 2018-10-22 23:38:01 +02:00
Takeshi KOMIYA
abcb5bd5ec The default setting for master_doc is changed to 'index' 2018-09-04 01:14:16 +09:00
Takeshi KOMIYA
f7027049b1 Fix flake8 violations 2018-02-19 23:20:56 +09:00
Takeshi KOMIYA
dc3d03da1b test: Fix broken testcases 2018-01-15 01:01:13 +09:00
Takeshi KOMIYA
b688941b09
Merge branch 'master' into feature-text-secnumbers 2018-01-15 00:21:50 +09:00
Takeshi KOMIYA
f1f6ca8cc9 Merge branch 'happy_new_year' into master 2018-01-01 01:09:17 +09:00
Takeshi KOMIYA
2426cedb8b A happy new year! 2018-01-01 01:06:58 +09:00
Matthew Woodcraft
e99eb09429 Fix Python 2 problems in test_build_text 2017-11-07 23:51:45 +00:00
Matthew Woodcraft
604db47228 #3998: Toctree section numbering in plain text output 2017-11-07 23:10:11 +00:00
Matthew Woodcraft
6b15c9c1c7 #3998: Add optional section numbering in plain text output
Controlled by new config values: text_add_secnumbers and
text_secnumber_suffix.
2017-11-05 22:51:38 +00:00
shimizukawa
d497d74370 refs #3458: add sphinx.testing that are moved from /tests directory. 2017-05-14 20:47:15 +09:00
Takeshi KOMIYA
8fda21099d Remove deprecated testing utilities 2017-04-27 23:38:42 +09:00
Takeshi KOMIYA
c57e47e042 Year++ 2017-03-26 11:49:34 +09:00
Takeshi KOMIYA
a1d6be6a54 Fix #1797: text builder inserts blank line on top 2016-08-19 23:46:54 +09:00
Georg Brandl
46d7e8558e Obligatory copyright update. 2016-01-14 22:54:04 +01:00
Takayuki Hirai
144fb2634d Fix #1793: Add new line before first item of list 2015-03-30 19:55:49 +09:00
Georg Brandl
a23903d8d5 Merge branch 'stable' 2015-01-03 21:41:14 +01:00
Georg Brandl
567d52f199 all: update copyright 2015-01-03 21:36:32 +01:00
Georg Brandl
d47a7587f9 Complete test suite overhaul.
* rename a few test modules to make the names more consistent

* do not copy/use Sphinx from build/ (unnecessary without 2to3)

* use a temporary dir for *all* test projects, the source tree
  will stay pristine that way  (default is tests/build)

* speed up tests by ~3x by splitting up test projects and avoiding
  rebuilds
2014-09-21 17:17:02 +02:00
Takayuki Shimizukawa
438f9fe3de make text generate wrong table when it has empty table cells. Closes #1544 2014-08-26 20:52:02 +09:00
Georg Brandl
e030031321 Update copyright year. 2014-03-01 08:18:16 +01:00
Takayuki Shimizukawa
be65b99879 grammar fix: 'multibyte filename' is ambiguous. They are replaced with 'non-ASCII filename'. refs #703 2013-10-03 06:43:22 +00:00
Georg Brandl
1af3e3ea71 tests: replace "from util import *" by explicit imports 2013-04-01 11:39:32 +02:00
Takayuki Shimizukawa
e2087189ea Add regression test for #1109. Issue was corrected at previous commit 62b0a5f17f62. Closes #1109 2013-03-09 23:14:31 +09:00
Takayuki Shimizukawa
f6fca7a8ac Fix: text builder breach max-witdh specificatoin if paragraph have prefixed text. ex: 'See also:' 2013-03-09 22:58:47 +09:00
Takayuki Shimizukawa
00fa1b2505 Fix text builder did not respect wide/fullwidth characters for textwrap. 2013-02-07 03:34:51 +00:00
Takayuki Shimizukawa
b8296ad11e Fix text builder did not respect wide/fullwidth charactors for table layout. 2013-02-06 00:29:59 +09:00
Takayuki Shimizukawa
529e45a980 Fix text builder did not respect wide/fullwidth charactors for title line. 2013-02-05 23:57:26 +09:00