summaryrefslogtreecommitdiff
path: root/docutils/parsers/rst
Commit message (Collapse)AuthorAgeFilesLines
* Fix [258] figwidth="image" generates unitless width value.milde2014-06-241-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7753 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Address [ 249 ] and [ 250 ]. CSV table fails on python 2 with unicode.milde2014-03-201-4/+7
| | | | | | | | While the problem of Unicode characters in the options under Python 2 cannot be solved with reasonable effort, the patch improves error reporting and documents the limitation. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7747 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Second version of patch #108.milde2013-07-121-3/+4
| | | | | | | Sphinx i18n feature needs "node.source" and "node.line" value at the admonition title node, not the admonition node. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7681 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Apply (part of) patch #108: source/line information for sphinx translationmilde2013-07-031-0/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7679 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Apply #106 and #107: language support for danish.milde2013-07-031-0/+113
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7678 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Consistently use "utf-8" (not "utf8") in magic comment giving source encoding.milde2013-06-041-1/+1
| | | | | | | Fixes problems with Docutils installed in "virtualenv" https://sourceforge.net/p/docutils/patches/105/ git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7668 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix [ 210 ] Python 3.3 checks CVS syntax only if "strict" is True.milde2013-05-161-0/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7662 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix [ 228 ], part II.milde2013-04-181-2/+2
| | | | | | | Try local import of docutils components (reader, writer, parser, language module) before global search. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7648 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Always import our local copy of roman.py (report Larry Hastings).milde2013-03-251-5/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7640 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix [ 157 ] Line block parsing does not like system message.milde2013-03-221-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7638 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Treat embedded standalone hyperlinks as URI, even if ending in underscore.milde2013-03-111-1/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7629 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix [ 3606028 ] ``assert`` is skipped with ``python -O``.milde2013-03-041-3/+6
| | | | | | | Also, raise ValueError with list of valid units if length_or_percentage_or_unitless() fails. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7621 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Support embedded aliases within hyperlink references.milde2013-02-181-16/+39
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7610 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix [ 3602652 ] correct syntax-highlight default value in help string.milde2013-01-301-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7598 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Apply [ 3599485 ] node source/line information for sphinx translation.milde2013-01-211-0/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7594 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* normalize_language_tag() now returns `BCP 47`_ conformant tagsmilde2012-11-231-0/+1
| | | | | | Subtags separated by ``-``, not ``_``. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7538 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add SmartQuotes transform for typographic quotes and dashes.milde2012-10-161-3/+13
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7530 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Change default of "syntax highlight" option to "long", milde2012-09-142-4/+3
| | | | | | Add basic syntax highlight styles for LaTeX and HTML. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7514 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix import of PIL.Image.milde2012-09-121-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7510 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix [3559988] and [3560841] __import__ local writer, reader, languages and ↵grubert2012-08-261-2/+5
| | | | | | parsers for Python 2.7 up. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7503 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add source file info and rawsource to term nodes to solve bug [ 3548418 ].milde2012-08-161-0/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7495 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix [ 3546533 ] unicode error with date directive.milde2012-07-221-2/+17
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7487 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix [3541369] Relative __import__ also with Python 3.3.milde2012-07-112-2/+10
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7486 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* io.FileInput/io.FileOutput: no system-exit on IOError.milde2012-06-252-19/+15
| | | | | | | The `handle_io_errors` option is ignored and will be removed in a future release. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7466 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* math, error_reporting, and urischemes moved to the utils package. milde2012-06-253-4/+4
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7464 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix [ 3525847 ] UnicodeEncodeError with locale == C milde2012-05-111-0/+5
| | | | | | and 8-bit char in path argument of `include` directive. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7433 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* note that references with embedded target URIs have been referenced ↵goodger2012-02-201-0/+1
| | | | | | (implicitly); enable INFO-level system messages in pseudo-XML functional test git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7363 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Use `field_marker` pattern to look for start of a directive option blockmilde2012-02-081-2/+2
| | | | | | (fixes [ 3484857 ]). git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7348 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Revert "io.FileInput/io.FileOutput: No system-exit on IOError."milde2012-01-272-12/+13
| | | | | | This reverts commit 7326 on Davids order. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7328 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* io.FileInput/io.FileOutput: No system-exit on IOError.milde2012-01-262-13/+12
| | | | | | Allows handling by core.Publisher or a calling application. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7326 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Cleanup: Use True/False for boolean valuesmilde2012-01-195-45/+45
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7320 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Report table parsing errors with correct line number.milde2012-01-112-16/+31
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7313 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Clean up system message (source, line) reporting.milde2012-01-095-74/+55
| | | | | | | Do the abs_line_number -> (src, srcline) conversion in the reporter whenever possible. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7310 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Store source and line in the "raw" node generated by raw-derived roles.milde2012-01-063-6/+7
| | | | | | | This is already done for nodes generated by raw directives and required for error reporting by writers. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7308 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix [ 2971827 ] and [ 3442827 ]milde2011-12-201-1/+4
| | | | | | extras/roman.py moved to docutils/utils/roman.py git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7268 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* docutils.utils is now a package (providing a place for sub-modules)milde2011-12-204-215/+5
| | | | | | | | | important:: docutils/math, docutils/error_reporting.py, and docutils/urischemes.py will move to the utils package in the next release, too. Code importing these modules needs to adapt. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7267 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Clean up record_dependencies feature.milde2011-12-142-12/+20
| | | | | | | | | | | | Use utf8 encoding for the record file: simple, failsave and reproducible way for portable storage of non-ASCII filenames (cf. http://www.dwheeler.com/essays/fixing-unix-linux-filenames.html). Drop latex2e exception: Record only files required to generate the LaTeX source. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7256 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix [ 3402314 ] non-ASCII whitespace and punctuation around inline markup.milde2011-12-052-24/+232
| | | | | | | | | | | | Revision of the rules for allowed characters around inline markup start-string and end-string: Keep the carefully crafted ASCII-character set but add Unicode categories to the sets of allowed characters. This keeps the number of "false positives" requiring escaping low while making the rules simpler and international. This is a feature change. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7243 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Allow also non-ASCII whitespace characters around inline markup.milde2011-11-291-19/+27
| | | | | | | | First part of fix for [ 3402314 ] Only editorial changes to the specification, it already speaks of "whitespace". git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7232 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix [ 2926161 ] for simple tables.milde2011-11-251-3/+7
| | | | | | Combining chars in grid tables still contribute to cell width. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7231 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* translations de: pull-quote = Seitenansprache, use utf8 for umlautsmilde2011-11-211-9/+12
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7223 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add "code-block" and "sourcecode" aliases to the "code" directive.milde2011-10-151-0/+2
| | | | | | | | | | This are common names in extensions providing code highlight (e.g. Sphinx, Trac). Currently, there are aliases for English documents only. Other languages can be added if required. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7179 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* "code" option of the "include" directive, testsmilde2011-09-173-11/+52
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7129 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix parse_option_marker for options arguments containing ``=``.grubert2011-09-171-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7127 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Some more translations for russian directives and rolesmilde2011-09-121-9/+9
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7123 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Apply [ 3405137 ], use utf-8 encoded literal Cyrillicmilde2011-09-071-69/+49
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7121 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* reStructuredText "code" role and directivemilde2011-09-0226-4/+153
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7119 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Common directive options:milde2011-07-066-31/+22
| | | | | | | | | Add "name" and "class" options to admonition directives. Directive content may start on the first line also when the directive type accepts options. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7072 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* New "name" directive option attaching a reference name.milde2011-06-305-15/+48
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7062 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Math directive and documentation update:milde2011-06-171-6/+21
| | | | | | | | | Math content can also be given as directive argument. Multiple content block separated by blank lines are put in separate nodes. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7056 929543f6-e4f2-0310-98a6-ba3bd3dd1d04