| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
with the "id" and "class" values of the list node.
Enables setting an "anchor" or a "class" value for "detail disclosure elments".
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9282 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use utils.xml_declaration().
Don't write charset (encoding) declaration if the intended output encoding
is not known.
Copy "meta" part content into "head" in `depart_document()`
(i.e. after collecting all items).
Obsoletes auxiliary method `add_meta()`. Remove it.
Changes to the HTML output (no space character before closing tag of XML
declaration, order of metadata elements) don't affect the HTML semantics,
styling, and rendering.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9240 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
| |
flake8 rule F401
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9037 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
| |
Breaking before binary operators is the recommended style
in PEP 8 (changed in April 2016).
flake8 rule W504
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9035 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
| |
flake8 rule E501: line too long (N > 79 characters)
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9030 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
| |
flake8 rules
E302: expected 2 blank lines, found 1
E305: expected 2 blank lines after class or function definition
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9026 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
| |
flake8 rules
E301: expected 1 blank line, found 0
E306: expected 1 blank line before a nested definition, found 0
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9024 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
| |
flake 8 rule E261
Exceptions for modules sheduled for removal or with
3rd-party origin and for data collections.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9021 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
| |
flake8 rule E251
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9020 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Flake rules
E201 whitespace after '('
E202 whitespace before '}'
E203 whitespace before ':'
E211 whitespace before '('
Exception: : as binary operator in extended slices
(cf. https://www.python.org/dev/peps/pep-0008/#pet-peeves).
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9015 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Check conformance to our coding policies with flake8.
Fix the following problems:
E111 indentation is not a multiple of four
E114 indentation is not a multiple of four (comment)
E115 expected an indented block (comment)
E116 unexpected indentation (comment)
E117 over-indented
E121 continuation line under-indented for hanging indent
E122 continuation line missing indentation or outdented
E124 closing bracked does not match visual indentaion
E127 continuation line over-indented for visual indent
E128 continuation line under-indented for visual indent
E131 continuation line unaligned for hanging indent
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8994 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
|
| |
In Python3.3, IOError has been merged into OSError.
https://docs.python.org/3/library/exceptions.html#OSError
Move code for recording dependencies in an "else" clause
after error handling.
Remove duplicate code in core.py.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8989 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
| |
Patch set by Adam Turner.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8985 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8983 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8979 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8978 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
| |
Add "html writers" to
`docutils.writers._html_base.Writer.config_section_dependencies`.
Now, it works "out of the box" for writers inheriting from `_html_base`.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8967 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
| |
Patch by Adam Turner.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8954 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
| |
Also drop codecs wrapper
and encoding of paths with "sys.getfilesystemencoding"
(automatically done in Python 3).
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8940 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
| |
Found by Tomasz Kłoczko running "pytest" (cf. feature-request #81)
and by running `python3 -W all alltests.py`.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8933 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8860 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Mark the internal back-refences from section headings to the ToC
with DPub-ARIA role "doc-backref".
Use "aria-level" instead of a class argument value for section headings
with nesting level > 6 (for level 1 to 6, the level is determined by
the HTML tag).
Mind that in HTML5, heading level 1 is reserved for the document title
and section headings start with level 2.
Add functional test sample for deeply nested sections.
Merge functional tests for additonal HTML5 features.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8786 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
| |
Items of a definition list with class argument "details" are
converted to `details disclosure elements`.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8783 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
| |
Use <div> with DPub ARIA role "doc-biblioentry" for citations.
Wrapping citations in a list (required for elements with role
"doc-biblioentry").
Use role "doc-biblioref" for citation-references.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8779 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
| |
Always add both methods of a visit/depart pair,
also if only one method is changed from the parent class.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8776 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
| |
Use node[...] instead of node.get(...) for basic attributes.
Remove HTMLTranslator.topic_classes auxiliary attribute.
HTML5: Do not add "compound-first", "compound-middle",
or "compound-last" to elements nested in a compound.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8774 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
| |
Common options for HTML writers.
Minor changes for xetex writer and docutils-cli.py.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8722 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8638 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
| |
This wrapper is not required as we can set the display to "block" with CSS.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8607 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If the new "embed_image" configuration setting is true, the image
can be read from the local file system, and its MIME type can be
determined, it is base64 encoded and included as a data URI.
TODO:
* Add an "embed" option to the "image" directive to allow embedding
of individual images?
* Use direct inlinging for SVG in HTML5?
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8581 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
| |
Also backported to html4css1 to fix possible spurious
whitespace after inline images.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8513 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
In HTML, <img> is by default an inline element.
The rST "image" directive generates block-level elements
(unless used in a "substitution" directive).
Wrapping in a container enables more advanced CSS styling.
A paragraph as wrapper fits well with Docutils wrapping
inline content in paragraphs by default.
No change for the "html4css1" writer (ensure backwards compatibility).
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8510 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
| |
Thanks to Takeshi KOMIYA for reporting the issue.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8242 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
| |
* add table width argument in docutils.dtd
* support table width argument in html and latex writers
* fix support in "csv-table" directive
* add test cases.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8187 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8163 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8035 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
| |
Add a table with "auto"-width columns to the functional tests.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8033 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@7977 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@7969 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
| |
Add :align: option to the table directives.
Thanks to Takeshi KOMIYA for the patch.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@7952 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@7939 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@7901 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
| |
New approach: use <span class="subscript"> ... and CSS in literal blocks,
as <sup> and <sub> are explicitely forbidden in XHTML 1
http://www.w3.org/TR/xhtml1/#prohibitions
(but the validator does not check this)
Also: fix target in SVG image functional test.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@7856 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
| |
(not allowed in <pre> but possible in parsed-literal).
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@7855 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@7847 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@7817 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@7815 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@7809 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
| |
(keeps doctree clean).
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@7808 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
| |
Also clarify the documentation of "class" directive and internal hyperlink
targets applying to the next element also if at the end of an indented block.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@7804 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|