blais | 1 Apr 2005 03:15
Picon

r3152 - trunk/docutils/tools/editors/emacs/restructuredtext.el

Author: blais
Date: 2005-04-01 03:15:46 +0200 (Fri, 01 Apr 2005)
New Revision: 3152

Modified:
   trunk/docutils/tools/editors/emacs/restructuredtext.el
Log:
Fixed another bug with emacs section titles, where
using a regexp special character (e.g. +) as an
underline wouldn't work.

Also, I made the default boxing title indent
to 1 space, as per bug report and dave's preference.

Modified: trunk/docutils/tools/editors/emacs/restructuredtext.el
===================================================================
--- trunk/docutils/tools/editors/emacs/restructuredtext.el	2005-03-31 21:36:09 UTC (rev 3151)
+++ trunk/docutils/tools/editors/emacs/restructuredtext.el	2005-04-01 01:15:46 UTC (rev 3152)
 <at>  <at>  -269,7 +269,7  <at>  <at> 
   "Default section underlining character to use when there aren't
   any others to be used in the file.")

-(defvar rest-default-under-and-over-indent 2
+(defvar rest-default-under-and-over-indent 1
   "Number of characters to indent the section title when toggling
   sectioning styles.  This is used when switching from a simple 
   section style to a over-and-under style.")
 <at>  <at>  -402,7 +402,10  <at>  <at> 
       ;; else we're not switching characters, and there is some sectioning
       ;; already present, so check if the current sectioning is complete and
(Continue reading)

blais | 2 Apr 2005 02:45
Picon

r3153 - trunk/docutils/tools/editors/emacs/restructuredtext.el

Author: blais
Date: 2005-04-02 02:45:50 +0200 (Sat, 02 Apr 2005)
New Revision: 3153

Modified:
   trunk/docutils/tools/editors/emacs/restructuredtext.el
Log:
Fixed some cases when the cursor is on the underline
line itself, and the line is short.
I'm trying to make this function work in all
reasonable cases.

Modified: trunk/docutils/tools/editors/emacs/restructuredtext.el
===================================================================
--- trunk/docutils/tools/editors/emacs/restructuredtext.el	2005-04-01 01:15:46 UTC (rev 3152)
+++ trunk/docutils/tools/editors/emacs/restructuredtext.el	2005-04-02 00:45:50 UTC (rev 3153)
 <at>  <at>  -108,20 +108,31  <at>  <at> 
 ;; it, we don't adjust it to the variable setting, we use the whitespace that is
 ;; already there for adjustment.

-(defun rest-line-single-char-p ()
+(defun rest-line-single-char-p (&optional accept-special)
   "Predicate return the unique char if the current line is
   composed only of a single repeated non-whitespace
   character. This returns the char even if there is whitespace at
-  the beginning of the line."
+  the beginning of the line.
+
+  If ACCEPT-SPECIAL is specified we do not ignore special sequences
+  which normally we would ignore when doing a search on many lines.
(Continue reading)

felixwiemann | 2 Apr 2005 23:32
Picon

r3154 - trunk/docutils/docs/dev/todo.txt

Author: felixwiemann
Date: 2005-04-02 23:32:12 +0200 (Sat, 02 Apr 2005)
New Revision: 3154

Modified:
   trunk/docutils/docs/dev/todo.txt
Log:
removed to-do list entried already implemented

Modified: trunk/docutils/docs/dev/todo.txt
===================================================================
--- trunk/docutils/docs/dev/todo.txt	2005-04-02 00:45:50 UTC (rev 3153)
+++ trunk/docutils/docs/dev/todo.txt	2005-04-02 21:32:12 UTC (rev 3154)
 <at>  <at>  -371,9 +371,6  <at>  <at> 
   option could be added to Docutils front ends to do this.  (Idea from
   Engelbert Gruber.)

-* Change the "class" attribute of elements (set with
-  Element.set_class) to a list?
-
 * Enable feedback of some kind from internal decisions, such as
   reporting the successful input encoding.  Modify runtime settings?
   System message?  Simple stderr output?
 <at>  <at>  -1374,9 +1371,6  <at>  <at> 
     internal section structure, with adornment styles independent of
     the main document.

-  - _`body.list-table`: See `List-Driven Tables
-    <rst/alternatives.html#list-driven-tables>`_.
-
(Continue reading)

felixwiemann | 2 Apr 2005 23:57
Picon

r3155 - in trunk/docutils: HISTORY.txt docutils/nodes.py docutils/parsers/rst/directives/__init__.py docutils/parsers/rst/directives/admonitions.py docutils/parsers/rst/directives/body.py docutils/parsers/rst/directives/images.py docutils/parsers/rst/directives/parts.py docutils/parsers/rst/directives/tables.py docutils/parsers/rst/roles.py docutils/transforms/misc.py docutils/transforms/parts.py docutils/writers/html4css1.py test/test_parsers/test_rst/test_directives/test_figures.py

Author: felixwiemann
Date: 2005-04-02 23:57:06 +0200 (Sat, 02 Apr 2005)
New Revision: 3155

Modified:
   trunk/docutils/HISTORY.txt
   trunk/docutils/docutils/nodes.py
   trunk/docutils/docutils/parsers/rst/directives/__init__.py
   trunk/docutils/docutils/parsers/rst/directives/admonitions.py
   trunk/docutils/docutils/parsers/rst/directives/body.py
   trunk/docutils/docutils/parsers/rst/directives/images.py
   trunk/docutils/docutils/parsers/rst/directives/parts.py
   trunk/docutils/docutils/parsers/rst/directives/tables.py
   trunk/docutils/docutils/parsers/rst/roles.py
   trunk/docutils/docutils/transforms/misc.py
   trunk/docutils/docutils/transforms/parts.py
   trunk/docutils/docutils/writers/html4css1.py
   trunk/docutils/test/test_parsers/test_rst/test_directives/test_figures.py
Log:
removed nodes.Element.set_class() method;
directives.class_option now returns a *list* of classes;
added test for :figclass: option of figure directive;
the raw role's :format: option is now "unchanged", not "class_option";
some fixes: the :class: option should now always be propagated correctly from
directives

Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt	2005-04-02 21:32:12 UTC (rev 3154)
+++ trunk/docutils/HISTORY.txt	2005-04-02 21:57:06 UTC (rev 3155)
(Continue reading)

felixwiemann | 3 Apr 2005 00:11
Picon

r3156 - in trunk/docutils/test/functional: expected/standalone_rst_html4css1.html input/data/standard.txt

Author: felixwiemann
Date: 2005-04-03 00:11:57 +0200 (Sun, 03 Apr 2005)
New Revision: 3156

Modified:
   trunk/docutils/test/functional/expected/standalone_rst_html4css1.html
   trunk/docutils/test/functional/input/data/standard.txt
Log:
added test for image and figure :class: and :figclass: options

Modified: trunk/docutils/test/functional/expected/standalone_rst_html4css1.html
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_html4css1.html	2005-04-02
21:57:06 UTC (rev 3155)
+++ trunk/docutils/test/functional/expected/standalone_rst_html4css1.html	2005-04-02
22:11:57 UTC (rev 3156)
 <at>  <at>  -539,10 +539,10  <at>  <at> 
 <div class="section" id="images">
 <h3><a class="toc-backref" href="#id62" name="images">2.14.2&nbsp;&nbsp;&nbsp;Images</a></h3>
 <p>An image directive (also clickable -- a hyperlink reference):</p>
-<div class="image image-reference"><a class="reference" href="#directives"><img
alt="../../../docs/user/rst/images/title.png"
src="../../../docs/user/rst/images/title.png" /></a></div>
+<div class="image class1 class2 image-reference"><a class="reference" href="#directives"><img
alt="../../../docs/user/rst/images/title.png" class="class1 class2"
src="../../../docs/user/rst/images/title.png" /></a></div>
 <p>A figure directive:</p>
-<div class="figure">
-<div class="image"><img alt="reStructuredText, the markup syntax"
src="../../../docs/user/rst/images/title.png" /></div>
(Continue reading)

goodger | 3 Apr 2005 00:26
Picon

r3157 - trunk/docutils/docs/dev/todo.txt

Author: goodger
Date: 2005-04-03 00:26:16 +0200 (Sun, 03 Apr 2005)
New Revision: 3157

Modified:
   trunk/docutils/docs/dev/todo.txt
Log:
updated

Modified: trunk/docutils/docs/dev/todo.txt
===================================================================
--- trunk/docutils/docs/dev/todo.txt	2005-04-02 22:11:57 UTC (rev 3156)
+++ trunk/docutils/docs/dev/todo.txt	2005-04-02 22:26:16 UTC (rev 3157)
 <at>  <at>  -85,6 +85,10  <at>  <at> 
 * Add option for file (and URL) access restriction to make Docutils
   usable in Wikis and similar applications.

+  2005-03-21: added ``file_insertion_enabled`` & ``raw_enabled``
+  settings.  These partially solve the problem, allowing or disabling
+  **all** file accesses, but not limited access.
+
 * Refactor

   - Rename methods & variables according to the `Python coding

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
(Continue reading)

felixwiemann | 3 Apr 2005 00:40
Picon

r3158 - trunk/docutils/docs/dev/todo.txt

Author: felixwiemann
Date: 2005-04-03 00:39:59 +0200 (Sun, 03 Apr 2005)
New Revision: 3158

Modified:
   trunk/docutils/docs/dev/todo.txt
Log:
protected some backslashes; added entry about unnecessary backslashes

Modified: trunk/docutils/docs/dev/todo.txt
===================================================================
--- trunk/docutils/docs/dev/todo.txt	2005-04-02 22:26:16 UTC (rev 3157)
+++ trunk/docutils/docs/dev/todo.txt	2005-04-02 22:39:59 UTC (rev 3158)
 <at>  <at>  -665,6 +665,11  <at>  <at> 

 __ rst/alternatives.html#or-not-to-do

+* Create ``info``-level system messages for unnecessarily
+  backslash-escaped characters (as in ``"\something"``, rendered as
+  "something") to allow checking for errors which silently slipped
+  through.
+
 * Add (functional) tests for untested roles.

 * The parser doesn't know anything about double-width characters such
 <at>  <at>  -890,9 +895,9  <at>  <at> 
   final behavior would be up to the Writer.  The directive argument
   could be one of page/column/recto/verso for added flexibility.

-  Currently ^L (Python's "\f") characters are treated as whitespace.
(Continue reading)

felixwiemann | 3 Apr 2005 00:48
Picon

r3159 - trunk/sandbox/davidg/infrastructure/docutils-update

Author: felixwiemann
Date: 2005-04-03 00:48:14 +0200 (Sun, 03 Apr 2005)
New Revision: 3159

Modified:
   trunk/sandbox/davidg/infrastructure/docutils-update
Log:
added protection against termination on "error" without $feedback

Modified: trunk/sandbox/davidg/infrastructure/docutils-update
===================================================================
--- trunk/sandbox/davidg/infrastructure/docutils-update	2005-04-02 22:39:59 UTC (rev 3158)
+++ trunk/sandbox/davidg/infrastructure/docutils-update	2005-04-02 22:48:14 UTC (rev 3159)
 <at>  <at>  -63,7 +63,7  <at>  <at> 
 done
 shift `expr $OPTIND - 1`

-test $feedback && echo 'Starting docutils-update run...'
+test $feedback && echo 'Starting docutils-update run...' || true

 if [ $trace -eq 1 -o $verbose -eq 1 ] ; then
     set -o xtrace
 <at>  <at>  -126,10 +126,10  <at>  <at> 
     if [ -e $txtfile ] ; then
         if [ $unconditional -eq 1 -o $txtfile -nt $htmlfile ] ; then
             if [ "${base:0:4}" == "pep-" ] ; then
-                test $feedback && echo "$txtfile (PEP)"
+                test $feedback && echo "$txtfile (PEP)" || true
                 python $lib/tools/pep.py --config=$dir/docutils.conf $txtfile $htmlfile
             else
(Continue reading)

felixwiemann | 3 Apr 2005 01:12
Picon

r3160 - in trunk/docutils/test/test_parsers/test_rst: test_directives/test_include.py test_directives/test_tables.py test_tables.py

Author: felixwiemann
Date: 2005-04-03 01:12:06 +0200 (Sun, 03 Apr 2005)
New Revision: 3160

Modified:
   trunk/docutils/test/test_parsers/test_rst/test_directives/test_include.py
   trunk/docutils/test/test_parsers/test_rst/test_directives/test_tables.py
   trunk/docutils/test/test_parsers/test_rst/test_tables.py
Log:
fixed some relative-path issues;
since CustomTestCase.setUp now automatically changes to the test root directory,
it is now necessary to provide paths relative to the testroot to allow
running test_tables and test_include from working directories other than the
test root;
in test_settings.py, there is still such a line
    mydir = os.path.dirname(fixpath.func_code.co_filename)
but there it is correct (and cannot be easily changed)

Modified: trunk/docutils/test/test_parsers/test_rst/test_directives/test_include.py
===================================================================
--- trunk/docutils/test/test_parsers/test_rst/test_directives/test_include.py	2005-04-02
22:48:14 UTC (rev 3159)
+++ trunk/docutils/test/test_parsers/test_rst/test_directives/test_include.py	2005-04-02
23:12:06 UTC (rev 3160)
 <at>  <at>  -20,7 +20,7  <at>  <at> 
     s.generateTests(totest)
     return s

-mydir = os.path.dirname(suite.func_code.co_filename)
+mydir = 'test_parsers/test_rst/test_directives/'
(Continue reading)

blais | 3 Apr 2005 01:44
Picon

r3161 - in trunk/docutils/tools/editors/emacs: restructuredtext.el tests/ tests/tests-adjust-section.el

Author: blais
Date: 2005-04-03 01:43:57 +0200 (Sun, 03 Apr 2005)
New Revision: 3161

Added:
   trunk/docutils/tools/editors/emacs/tests/
   trunk/docutils/tools/editors/emacs/tests/tests-adjust-section.el
Modified:
   trunk/docutils/tools/editors/emacs/restructuredtext.el
Log:
A simple first stab at a series of regression
tests for the section underlining function.
I still have to write many of the other tests.

Modified: trunk/docutils/tools/editors/emacs/restructuredtext.el
===================================================================
--- trunk/docutils/tools/editors/emacs/restructuredtext.el	2005-04-02 23:12:06 UTC (rev 3160)
+++ trunk/docutils/tools/editors/emacs/restructuredtext.el	2005-04-02 23:43:57 UTC (rev 3161)
 <at>  <at>  -1,5 +1,5  <at>  <at> 
-;; Authors: David Goodger <goodger <at> python.org>;
-;;          Martin Blais
+;; Authors: David Goodger <goodger <at> python.org>,
+;;          Martin Blais <blais <at> furius.ca>
 ;; Date: $Date$
 ;; Copyright: This module has been placed in the public domain.
 ;;
 <at>  <at>  -447,6 +447,7  <at>  <at> 
 	    )))
       )))

(Continue reading)


Gmane