goodger | 4 Aug 2005 05:00
Picon

r3786 - trunk/docutils/docs/ref/rst/restructuredtext.txt

Author: goodger
Date: 2005-08-04 05:00:27 +0200 (Thu, 04 Aug 2005)
New Revision: 3786

Modified:
   trunk/docutils/docs/ref/rst/restructuredtext.txt
Log:
add "new in Docutils 0.3.8" notice to auto-enumerated lists

Modified: trunk/docutils/docs/ref/rst/restructuredtext.txt
===================================================================
--- trunk/docutils/docs/ref/rst/restructuredtext.txt	2005-07-31 16:19:28 UTC (rev 3785)
+++ trunk/docutils/docs/ref/rst/restructuredtext.txt	2005-08-04 03:00:27 UTC (rev 3786)
 <at>  <at>  -673,7 +673,8  <at>  <at> 
 In addition, the auto-enumerator, "#", may be used to automatically
 enumerate a list.  Auto-enumerated lists may begin with explicit
 enumeration, which sets the sequence.  Fully auto-enumerated lists use
-arabic numerals and begin with 1.
+arabic numerals and begin with 1.  (Auto-enumerated lists are new in
+Docutils 0.3.8.)

 The following formatting types are recognized:

 <at>  <at>  -1165,7 +1166,7  <at>  <at> 
 Line Blocks
 -----------

-Doctree elements: line_block, line.  New in Docutils 0.3.5.
+Doctree elements: line_block, line.  (New in Docutils 0.3.5.)

(Continue reading)

blais | 7 Aug 2005 09:44
Picon

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

Author: blais
Date: 2005-08-07 09:44:03 +0200 (Sun, 07 Aug 2005)
New Revision: 3787

Modified:
   trunk/docutils/tools/editors/emacs/restructuredtext.el
Log:
Added missing generic filter function.

Modified: trunk/docutils/tools/editors/emacs/restructuredtext.el
===================================================================
--- trunk/docutils/tools/editors/emacs/restructuredtext.el	2005-08-04 03:00:27 UTC (rev 3786)
+++ trunk/docutils/tools/editors/emacs/restructuredtext.el	2005-08-07 07:44:03 UTC (rev 3787)
 <at>  <at>  -27,6 +27,20  <at>  <at> 
 ;; C-u C-=.

 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;; Generic Filter function.
+
+(if (not (fboundp 'filter))
+    (defun filter (pred list)
+      "Returns a list of all the elements fulfilling the pred requirement (that
+is for which (pred elem) is true)"
+      (if list
+          (let ((head (car list))
+                (tail (filter pred (cdr list))))
+            (if (funcall pred head)
+                (cons head tail)
+              tail)))))
+
(Continue reading)

blais | 7 Aug 2005 10:27
Picon

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

Author: blais
Date: 2005-08-07 10:27:19 +0200 (Sun, 07 Aug 2005)
New Revision: 3788

Modified:
   trunk/docutils/tools/editors/emacs/restructuredtext.el
   trunk/docutils/tools/editors/emacs/tests/tests-adjust-section.el
Log:
Added a fix to the underlining function that 
makes it less disturbing when you position the
cursor on the underline.

Also, fixed the tests.

Modified: trunk/docutils/tools/editors/emacs/restructuredtext.el
===================================================================
--- trunk/docutils/tools/editors/emacs/restructuredtext.el	2005-08-07 07:44:03 UTC (rev 3787)
+++ trunk/docutils/tools/editors/emacs/restructuredtext.el	2005-08-07 08:27:19 UTC (rev 3788)
 <at>  <at>  -390,34 +390,36  <at>  <at> 

   (interactive)

-  ;; check if we're on an underline under a title line, and move the cursor up
-  ;; if it is so.
-  (if (and (or (rest-line-single-char-p 1) 
-	       (looking-at "^\\s-*$"))
-	   (save-excursion
-	     (forward-line -1)
-	     (beginning-of-line)
-	     (looking-at "^.+$")))
(Continue reading)

goodger | 10 Aug 2005 04:49
Picon

r3789 - in trunk/docutils: docutils/parsers/rst/states.py test/test_parsers/test_rst/test_enumerated_lists.py

Author: goodger
Date: 2005-08-10 04:49:06 +0200 (Wed, 10 Aug 2005)
New Revision: 3789

Modified:
   trunk/docutils/docutils/parsers/rst/states.py
   trunk/docutils/test/test_parsers/test_rst/test_enumerated_lists.py
Log:
fixed enumerated list bug (SF#1254145)

Modified: trunk/docutils/docutils/parsers/rst/states.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/states.py	2005-08-07 08:27:19 UTC (rev 3788)
+++ trunk/docutils/docutils/parsers/rst/states.py	2005-08-10 02:49:06 UTC (rev 3789)
 <at>  <at>  -1289,14 +1289,15  <at>  <at> 
             self.state_machine.previous_line()
         if not next_line[:1].strip():   # blank or indented
             return 1
-        next_enumerator, auto_enumerator = self.make_enumerator(
-            ordinal + 1, sequence, format)
-        try:
-            if ( next_line.startswith(next_enumerator) or
-                 next_line.startswith(auto_enumerator) ):
-                return 1
-        except TypeError:
-            pass
+        result = self.make_enumerator(ordinal + 1, sequence, format)
+        if result:
+            next_enumerator, auto_enumerator = result
+            try:
(Continue reading)

goodger | 13 Aug 2005 00:18
Picon

r3790 - trunk/docutils/docs/dev/policies.txt

Author: goodger
Date: 2005-08-13 00:18:09 +0200 (Sat, 13 Aug 2005)
New Revision: 3790

Modified:
   trunk/docutils/docs/dev/policies.txt
Log:
minor update

Modified: trunk/docutils/docs/dev/policies.txt
===================================================================
--- trunk/docutils/docs/dev/policies.txt	2005-08-10 02:49:06 UTC (rev 3789)
+++ trunk/docutils/docs/dev/policies.txt	2005-08-12 22:18:09 UTC (rev 3790)
 <at>  <at>  -237,9 +237,11  <at>  <at> 
   mess up anything else, go right ahead and check it in directly.

 * For larger changes, use your best judgement.  If you're unsure of
-  the impact, or feel that you require advice or approval, patches or
-  `the sandbox`_ are the way to go.
+  the impact, or feel that you require advice or approval, branches,
+  patches, or `the sandbox`_ are the way to go.

+* You must be prepared to fix any code you have committed.
+
 Docutils will pursue an open and trusting policy for as long as
 possible, and deal with any aberrations if (and hopefully not when)
 they happen.  I'd rather see a torrent of loose contributions than

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
(Continue reading)

goodger | 13 Aug 2005 00:20
Picon

r3791 - trunk/docutils/tools/stylesheets/pep.css

Author: goodger
Date: 2005-08-13 00:20:39 +0200 (Sat, 13 Aug 2005)
New Revision: 3791

Modified:
   trunk/docutils/tools/stylesheets/pep.css
Log:
updated from Docutils default.css

Modified: trunk/docutils/tools/stylesheets/pep.css
===================================================================
--- trunk/docutils/tools/stylesheets/pep.css	2005-08-12 22:18:09 UTC (rev 3790)
+++ trunk/docutils/tools/stylesheets/pep.css	2005-08-12 22:20:39 UTC (rev 3791)
 <at>  <at>  -8,12 +8,18  <at>  <at> 
 Default cascading style sheet for the PEP HTML output of Docutils.
 */

+/* "! important" is used here to override other ``margin-top`` and
+   ``margin-bottom`` styles that are later in the stylesheet or 
+   more specific.  See http://www.w3.org/TR/CSS1#the-cascade */
 .first {
-  margin-top: 0 }
+  margin-top: 0 ! important }

-.last {
-  margin-bottom: 0 }
+.last, .with-subtitle {
+  margin-bottom: 0 ! important }

+.hidden {
(Continue reading)

felixwiemann | 14 Aug 2005 15:53
Picon

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

Author: felixwiemann
Date: 2005-08-14 15:53:33 +0200 (Sun, 14 Aug 2005)
New Revision: 3792

Modified:
   trunk/docutils/docs/dev/todo.txt
Log:
added to-do list entry

Modified: trunk/docutils/docs/dev/todo.txt
===================================================================
--- trunk/docutils/docs/dev/todo.txt	2005-08-12 22:20:39 UTC (rev 3791)
+++ trunk/docutils/docs/dev/todo.txt	2005-08-14 13:53:33 UTC (rev 3792)
 <at>  <at>  -630,7 +630,9  <at>  <at> 
   (http://article.gmane.org/gmane.text.docutils.cvs/3824).

 * Complain about bad URI characters
-  (http://article.gmane.org/gmane.text.docutils.user/2046).
+  (http://article.gmane.org/gmane.text.docutils.user/2046) and
+  disallow internal whitespace
+  (http://article.gmane.org/gmane.text.docutils.user/2214).

 * Create ``info``-level system messages for unnecessarily
   backslash-escaped characters (as in ``"\something"``, rendered as

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
(Continue reading)

felixwiemann | 14 Aug 2005 16:16
Picon

r3793 - trunk/docutils/docs/user/links.txt

Author: felixwiemann
Date: 2005-08-14 16:16:17 +0200 (Sun, 14 Aug 2005)
New Revision: 3793

Modified:
   trunk/docutils/docs/user/links.txt
Log:
added link to xml2rst

Modified: trunk/docutils/docs/user/links.txt
===================================================================
--- trunk/docutils/docs/user/links.txt	2005-08-14 13:53:33 UTC (rev 3792)
+++ trunk/docutils/docs/user/links.txt	2005-08-14 14:16:17 UTC (rev 3793)
 <at>  <at>  -31,6 +31,10  <at>  <at> 

 * For Blogs (Weblogs), please see the `FAQ entry about Blogs`_.

+* xml2rst_, an XSLT stylesheet written by Stefan Merten, converts XML
+  dumps of the document tree (e.g. created with rst2xml.py) back to
+  reStructuredText.
+
 * rst2ht_, by Oliver Rutherfurd, converts reStructuredText to an .ht
   template, for use with ht2html_.

 <at>  <at>  -102,6 +106,7  <at>  <at> 
 .. _Docutils: http://docutils.sourceforge.net/
 .. _FAQ entry about Wikis: http://docutils.sf.net/FAQ.html#are-there-any-wikis-that-use-restructuredtext-syntax
 .. _FAQ entry about Blogs: http://docutils.sf.net/FAQ.html#are-there-any-weblog-blog-projects-that-use-restructuredtext-syntax
+.. _xml2rst: http://www.merten-home.de/FreeSoftware/xml2rst/index.html
 .. _rst2ht: http://www.rutherfurd.net/articles/rst-ht2html.html
(Continue reading)

felixwiemann | 14 Aug 2005 16:19
Picon

r3794 - trunk/docutils/docs/user/links.txt

Author: felixwiemann
Date: 2005-08-14 16:19:27 +0200 (Sun, 14 Aug 2005)
New Revision: 3794

Modified:
   trunk/docutils/docs/user/links.txt
Log:
changed title to "Link List" so that it is found when googling for
'docutils link list'

Modified: trunk/docutils/docs/user/links.txt
===================================================================
--- trunk/docutils/docs/user/links.txt	2005-08-14 14:16:17 UTC (rev 3793)
+++ trunk/docutils/docs/user/links.txt	2005-08-14 14:19:27 UTC (rev 3794)
 <at>  <at>  -1,6 +1,6  <at>  <at> 
-=================
- Docutils_ Links
-=================
+=====================
+ Docutils_ Link List
+=====================

 :Author: Felix Wiemann
 :Contact: Felix.Wiemann <at> ososo.de

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
(Continue reading)

felixwiemann | 14 Aug 2005 16:52
Picon

r3795 - trunk/docutils/docutils/writers/newlatex2e.py

Author: felixwiemann
Date: 2005-08-14 16:52:05 +0200 (Sun, 14 Aug 2005)
New Revision: 3795

Modified:
   trunk/docutils/docutils/writers/newlatex2e.py
Log:
minor improvements

Modified: trunk/docutils/docutils/writers/newlatex2e.py
===================================================================
--- trunk/docutils/docutils/writers/newlatex2e.py	2005-08-14 14:19:27 UTC (rev 3794)
+++ trunk/docutils/docutils/writers/newlatex2e.py	2005-08-14 14:52:05 UTC (rev 3795)
 <at>  <at>  -70,6 +70,8  <at>  <at> 
     output = None
     """Final translated form of `document`."""

+    default_transforms = ()
+
     def __init__(self):
         writers.Writer.__init__(self)
         self.translator_class = LaTeXTranslator
 <at>  <at>  -203,7 +205,7  <at>  <at> 
         a(r'\providecommand{\Dparent}{} % variable')
         a(r'\providecommand{\Dattr}[5]{#5}')
         a(r'\providecommand{\Dattrlen}{} % variable')
-        a(r'\providecommand{\Dtitleastext}{x}')
+        a(r'\providecommand{\Dtitleastext}{x} % variable')
         a(r'\providecommand{\Dsinglebackref}{} % variable')
         a(r'\providecommand{\Dmultiplebackrefs}{} % variable')
(Continue reading)


Gmane