summaryrefslogtreecommitdiff
path: root/docutils/test/functional/input
Commit message (Collapse)AuthorAgeFilesLines
* Wrap definition lists with "details" class argument in a <div>milde2022-11-281-0/+2
| | | | | | | | 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@9282 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix some problems with HTML5 stylesheets. Add tests for "tuftig.css".milde2022-06-132-0/+126
| | | | | | | Ignore footnote back-references, when copying from Firefox. Small tweaks for tuftig.css. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9070 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix trailing whitespace (non-Python files).milde2022-01-2915-33/+17
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8995 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Change http://docutils.sourceforge.net -> https://docutils.sourceforge.iomilde2022-01-204-4/+4
| | | | | | Patch by Adam Turner. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8956 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* add symlink to responsive.css grubert2021-10-031-0/+1
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8839 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* HTML5: New default for table column widths (fixes bug #426).milde2021-10-011-1/+1
| | | | | | | | | Only specify table column widths, if the "widths" option is set and is not "auto". The `table_style`_ setting "colwidths-grid" restores the current default. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8836 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* LaTeX writer: New algorithm for table colum widths. Fixes bug #422.milde2021-09-301-55/+62
| | | | | | | | | | | | New configuration setting "legacy_column_widths" for backwards compatibility. Only write "continued on next page..." if it fits without making the table columns wider. Table `width` option overrides conflicting "auto" column `widths`. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8835 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Minor test fixes.milde2021-09-201-14/+6
| | | | | | | | | Remove workaround for legacy versions of the "hyperref" LaTeX package. Remove spurious import. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8830 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix #423 Code blocks in sidebars cause LaTeX errors.milde2021-09-071-4/+10
| | | | | | | | | | | | | Do not use the "alltt" enviromnent in sidebars. In admonitions and system-messages, "alltt" is used unless the "legacy-class-functions" setting is True. (Admonitions and system-messages are implemented as environments since rev 8479.) Thanks to Clément Pit-Claudel for reporting. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8820 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Update functional test for LaTeX corner cases.milde2021-08-115-251/+185
| | | | | | | | Test for more problems with tables. Cosmetic fixes, reword, restructure. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8810 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* MathML: fixes and additions.milde2021-08-101-2/+2
| | | | | | | | | | | | | | | | | | | | Math accent commands more similar to their LaTeX behaviour. Additions for HTML export. Use boolean values for boolean node arguments. Downcase node arguments before storing. Use class argument "boldsymbol" for \boldsymbol content. Alignment of multi line equations similar to AMS-LaTeX "align" environment. Add space after bracket in "cases" environment, left-align columns. Fix spacing before "unary" minus. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8805 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Update SVG image samples and tests.milde2021-07-191-51/+31
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8804 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* HTML5: small tweaksmilde2021-07-052-0/+9
| | | | | | | | | | | | | Move space character between section number and heading into "sectnum" span. Simplify code in _html_base.py. responsive.css: highlight target of current URL, show an arrow when hovering over section heading to hint at the target of toc-backlinks. Test setting `--toc_backlinks=top` and the "responsive.css" stylesheet. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8787 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* HTML5: Improve accessibility of section headings.milde2021-06-303-9/+18
| | | | | | | | | | | | | | | | 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@8786 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Reorganise functional tests.milde2021-06-3013-108/+83
| | | | | | | | | | | Move additional tests for special features or problems specific to the output format from the "standalone_..." generic test case to additional tests. Use unit test instead of functional test for the fix in r6155 (hyperlink references in substitutions). git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8784 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* HTML5: Support details disclosure elementsmilde2021-06-301-0/+19
| | | | | | | 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@8783 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* HTML5: ARIA roles for citations and citation-references.milde2021-06-251-1/+1
| | | | | | | | | | 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@8779 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* HTML5: Semantic markup for footnotes.milde2021-06-251-2/+26
| | | | | | | | | | | | | | Use "aside" instead of a description list for footnotes and citations. While providing decent standard rendering, footnote label and text are no instance of a "definition term" and "definition". Use "invisible" footnote label brackets instead of display="none" with superscript footnotes so that the brackets are kept with drag-and-drop. Adapt stylesheets. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8773 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* MathML: support more functions and symbols.milde2021-05-201-67/+133
| | | | | | | | | | | | | - Support emellished identifiers, - support more functions and symbols from "amsmath", - map HYPHEN-MINUS -> MINUS SIGN and COLON -> RATIO im math context, - simplify doctests with starred import, - dont wrap content in <mrow> when it is inferred by an element (let these elements inherit from "mrow"). - tex2unichar: Fix/extend character mappings. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8748 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* MathML update: math alphabets, tex_token(), add documentation.milde2021-05-201-0/+462
| | | | | | | | | | * math alphabets: Use token elements for single symbols or names. * tex_token: skip whitespace after command names. * comprehensive documentation/test document. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8747 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* MathML: Implement "cases" environment in latex2mathml.milde2021-05-201-11/+1
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8740 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* html5 writer: support field lists with custom indent.milde2021-05-201-1/+10
| | | | | | Review handling of "classes" attribute. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8735 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* HTML5 writer: support <video>.milde2021-03-201-0/+34
| | | | | | Use <video> for images with video MIME types supported by HTML5. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8639 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* HTML5 writer: Add a `viewport` meta tag to fix rendering in mobile browsers.milde2021-03-091-12/+6
| | | | | | | | The default behaviour of many mobile browsers is to render for a virtual viewport size and scale. This breaks CSS styling with the default stylesheets. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8632 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* New responsive style for HTML5.milde2021-03-051-0/+10
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8630 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Update functional test sample.milde2021-02-234-42/+63
| | | | | | | | | | | Update some links. Describe "meta" directive. Don't use too wide images and tables to allow adaption to small screens (mobile). git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8627 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* latex-writer: add \\leavevmode after term or field name if required.milde2021-02-181-0/+164
| | | | | | Based on patch #176 by John Thorvald Wodder II git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8626 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix/Update HTML5 writer functional test.milde2021-02-133-213/+223
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8622 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Small update of the functional test input.milde2021-01-262-13/+11
| | | | | | No change in functionality. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8608 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Implement feature request #40 Option to embed images as data URI.milde2020-11-271-0/+25
| | | | | | | | | | | | | | | 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@8581 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Apply patch #175 "Fix alignment of nested tables".milde2020-11-251-0/+47
| | | | | | | | | | Thanks to John Thorvald Wodder II for the patch. Additional fixes to table alignment. Expand LaTeX writer test for nested tables. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8577 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* LaTeX writer tests: functional test stub for nested tables.milde2020-10-281-0/+29
| | | | | | Cf. patch #175. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8570 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Make the sidebar's "title" argument optional.milde2020-07-101-1/+1
| | | | | | | | | Feature request #69. The analogous DocBook "sidebar" element's title is optional. too (https://tdg.docbook.org/tdg/5.2/sidebar.html). git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8524 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* html5: support numbered figures (with CSS styling, analogue to tables).milde2020-04-031-0/+12
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8515 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* functional tests: add section headingmilde2020-04-031-0/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8514 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* html writer: Drop spurious suffix after <object> starttag.milde2020-04-031-1/+1
| | | | | | | Also backported to html4css1 to fix possible spurious whitespace after inline images. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8513 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* html5 writer: prepare support of <ins> and <del> tags.milde2019-10-102-3/+38
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8402 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* html5 writer: Add list of text-level tags to the functional test.milde2019-09-302-1/+228
| | | | | | | | Preparation for support of more text-level tags. Also some minor formatting/documentation fixes. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8399 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* HTML fixes and updates.milde2019-09-191-2/+3
| | | | | | | | Remove dead code. Remove unused class value "first" for topic-title. Fix/update CSS stylesheets for html5 writer. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8396 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix [ 339 ] don't use "alltt" in admonitions and footnotes.milde2019-09-141-3/+16
| | | | | | Includes some other minor cleanups for the LaTeX writer. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8391 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add odt test for rawgrubert2019-08-201-0/+11
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8322 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add test for header and footergrubert2019-08-201-0/+13
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8319 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add test for footnote referenced twicegrubert2019-08-201-0/+9
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8317 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add odt classifier testgrubert2019-08-191-0/+13
| | | | | | | Fix: xml.etree.ElementTree Element.getchildren deprecated warning git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8316 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add regression test for odt contentsgrubert2019-08-191-0/+15
| | | | | | | Fix: xml.etree.ElementTree Element.getchildren deprecated warning git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8315 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add odt regression test for literal blockgrubert2019-08-191-0/+4
| | | | | | | Fix: xml.etree.ElementTree Element.getchildren deprecated warning git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8314 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Properly escape LaTeX commands in test samples.milde2017-11-062-7/+7
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8200 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix bug #331: fixed the "trim" options of the "unicode" directive.goodger2017-10-201-1/+7
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8188 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix :width: option for the table directives.milde2017-10-193-0/+4
| | | | | | | | | | * 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: http://svn.code.sf.net/p/docutils/code/trunk@8187 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fixes and test for literal block handling in LaTeX.milde2017-09-221-0/+69
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8180 929543f6-e4f2-0310-98a6-ba3bd3dd1d04