grubert | 3 Jun 16:53 2011
Picon

r7042 - trunk/docutils/test/test_writers/test_manpage.py

Author: grubert
Date: 2011-06-03 16:53:09 +0200 (Fri, 03 Jun 2011)
New Revision: 7042

Modified:
   trunk/docutils/test/test_writers/test_manpage.py
Log:
add test for option group with group item "."

Modified: trunk/docutils/test/test_writers/test_manpage.py
===================================================================
--- trunk/docutils/test/test_writers/test_manpage.py	2011-05-28 10:49:55 UTC (rev 7041)
+++ trunk/docutils/test/test_writers/test_manpage.py	2011-06-03 14:53:09 UTC (rev 7042)
 <at>  <at>  -198,6 +198,69  <at>  <at> 
 ''']
 ]

+totest['optiongroup'] = [
+        ["""
+optin group with dot as group item
+
+$
+   bla bla bla
+
+#
+   bla bla bla
+
+.
+   bla bla bla
+
(Continue reading)

grubert | 3 Jun 17:01 2011
Picon

r7043 - in trunk/docutils: HISTORY.txt docutils/writers/manpage.py test/test_writers/test_manpage.py

Author: grubert
Date: 2011-06-03 17:01:37 +0200 (Fri, 03 Jun 2011)
New Revision: 7043

Modified:
   trunk/docutils/HISTORY.txt
   trunk/docutils/docutils/writers/manpage.py
   trunk/docutils/test/test_writers/test_manpage.py
Log:
Fix: vertical space cleaning for option group ``.``.

Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt	2011-06-03 14:53:09 UTC (rev 7042)
+++ trunk/docutils/HISTORY.txt	2011-06-03 15:01:37 UTC (rev 7043)
 <at>  <at>  -69,6 +69,10  <at>  <at> 
     A separate writer (inheriting from latex2e) instead of a ``--xetex``
     option allows separate config options for XeTeX vs. LaTeX2e.

+* docutils/writers/manpage.py
+
+  - Fix: vertical space cleaning for option group ``.``.
+ 
 * tools/editors/emacs/rst.el:

   - Fix [ 3001100 ] does not handle spaces in filenames

Modified: trunk/docutils/docutils/writers/manpage.py
===================================================================
--- trunk/docutils/docutils/writers/manpage.py	2011-06-03 14:53:09 UTC (rev 7042)
(Continue reading)

grubert | 4 Jun 10:37 2011
Picon

r7044 - trunk/sandbox/manpage-writer/runtest

Author: grubert
Date: 2011-06-04 10:37:10 +0200 (Sat, 04 Jun 2011)
New Revision: 7044

Modified:
   trunk/sandbox/manpage-writer/runtest
Log:
disable encoidng tests on macosx.

Modified: trunk/sandbox/manpage-writer/runtest
===================================================================
--- trunk/sandbox/manpage-writer/runtest	2011-06-03 15:01:37 UTC (rev 7043)
+++ trunk/sandbox/manpage-writer/runtest	2011-06-04 08:37:10 UTC (rev 7044)
 <at>  <at>  -6,8 +6,10  <at>  <at> 

 if [ -z "`man man|grep -- '^ *-T Format'`" ] ; then
     echo 'ALERT: your man does not support "-T Format" to specify encoding'
-    echo 'Ctrl-C to abort, Ctrl-D to continue'
-    read
+    echo 'SKIPPING encoding tests'
+    ENCS=""
+else
+    ENCS="latin1 utf8 ascii"
 fi

 if [ -z "$1" ] ; then
 <at>  <at>  -29,7 +31,7  <at>  <at> 
   $CMD $OPT $IN_F $OUT_DIR/$F_BASE.man
   if [ $? -eq 0 ] ; then
     diff -s -u $EXP_DIR/$F_BASE.man $OUT_DIR/$F_BASE.man
(Continue reading)

grubert | 4 Jun 10:38 2011
Picon

r7045 - trunk/sandbox/manpage-writer/runtest

Author: grubert
Date: 2011-06-04 10:38:55 +0200 (Sat, 04 Jun 2011)
New Revision: 7045

Modified:
   trunk/sandbox/manpage-writer/runtest
Log:
change message

Modified: trunk/sandbox/manpage-writer/runtest
===================================================================
--- trunk/sandbox/manpage-writer/runtest	2011-06-04 08:37:10 UTC (rev 7044)
+++ trunk/sandbox/manpage-writer/runtest	2011-06-04 08:38:55 UTC (rev 7045)
 <at>  <at>  -5,7 +5,7  <at>  <at> 
 EXP_DIR=expected

 if [ -z "`man man|grep -- '^ *-T Format'`" ] ; then
-    echo 'ALERT: your man does not support "-T Format" to specify encoding'
+    echo 'WARNING: your man does not support "-T Format" to specify encoding'
     echo 'SKIPPING encoding tests'
     ENCS=""
 else

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
(Continue reading)

grubert | 4 Jun 11:32 2011
Picon

r7046 - in trunk/docutils: docutils/writers/manpage.py test/test_writers/test_manpage.py

Author: grubert
Date: 2011-06-04 11:32:20 +0200 (Sat, 04 Jun 2011)
New Revision: 7046

Modified:
   trunk/docutils/docutils/writers/manpage.py
   trunk/docutils/test/test_writers/test_manpage.py
Log:
Fix: regexp possible roff command and add test for it

Modified: trunk/docutils/docutils/writers/manpage.py
===================================================================
--- trunk/docutils/docutils/writers/manpage.py	2011-06-04 08:38:55 UTC (rev 7045)
+++ trunk/docutils/docutils/writers/manpage.py	2011-06-04 09:32:20 UTC (rev 7046)
 <at>  <at>  -155,7 +155,7  <at>  <at> 
     """"""

     words_and_spaces = re.compile(r'\S+| +|\n')
-    possibly_a_roff_command = re.compile(r'.\w')
+    possibly_a_roff_command = re.compile(r'\.\w')
     document_start = """Man page generated from reStructeredText."""

     def __init__(self, document):

Modified: trunk/docutils/test/test_writers/test_manpage.py
===================================================================
--- trunk/docutils/test/test_writers/test_manpage.py	2011-06-04 08:38:55 UTC (rev 7045)
+++ trunk/docutils/test/test_writers/test_manpage.py	2011-06-04 09:32:20 UTC (rev 7046)
 <at>  <at>  -260,7 +260,52  <at>  <at> 
 ."""],
(Continue reading)

grubert | 4 Jun 11:42 2011
Picon

r7047 - in trunk/sandbox/manpage-writer: expected/optionslisttest.latin1 expected/optionslisttest.man input/optionslisttest.txt

Author: grubert
Date: 2011-06-04 11:42:40 +0200 (Sat, 04 Jun 2011)
New Revision: 7047

Modified:
   trunk/sandbox/manpage-writer/expected/optionslisttest.latin1
   trunk/sandbox/manpage-writer/expected/optionslisttest.man
   trunk/sandbox/manpage-writer/input/optionslisttest.txt
Log:
Add failing test for fieldlist with term containing emphasize

Modified: trunk/sandbox/manpage-writer/expected/optionslisttest.latin1
===================================================================
--- trunk/sandbox/manpage-writer/expected/optionslisttest.latin1	2011-06-04 09:32:20 UTC (rev 7046)
+++ trunk/sandbox/manpage-writer/expected/optionslisttest.latin1	2011-06-04 09:42:40 UTC (rev 7047)
 <at>  <at>  -67,6 +67,18  <at>  <at> 

        This paragraph should be at level 0.

+EEMMPPHHAASSIIZZEE
+       ppllaaiinn tteexxtt tteerrmm
+              definition paragraph 1
+
+              definition paragraph 2
+
+       tteerrmm wwiitthh _e_m_p_h_a_s_i_s iinn iitt
+
+              paragraph 1 should not be preceeded by a blank line
+
+              definition paragraph 2
(Continue reading)

grubert | 4 Jun 14:35 2011
Picon

r7048 - in trunk: docutils/HISTORY.txt docutils/docutils/writers/manpage.py sandbox/manpage-writer/expected/characters.man sandbox/manpage-writer/expected/compact_lists.man sandbox/manpage-writer/expected/man-de.1.latin1 sandbox/manpage-writer/expected/man-de.1.man sandbox/manpage-writer/expected/man-de.1.utf8 sandbox/manpage-writer/expected/optionslisttest.latin1 sandbox/manpage-writer/expected/optionslisttest.man sandbox/manpage-writer/expected/test.latin1 sandbox/manpage-writer/expected/test.man

Author: grubert
Date: 2011-06-04 14:35:19 +0200 (Sat, 04 Jun 2011)
New Revision: 7048

Modified:
   trunk/docutils/HISTORY.txt
   trunk/docutils/docutils/writers/manpage.py
   trunk/sandbox/manpage-writer/expected/characters.man
   trunk/sandbox/manpage-writer/expected/compact_lists.man
   trunk/sandbox/manpage-writer/expected/man-de.1.latin1
   trunk/sandbox/manpage-writer/expected/man-de.1.man
   trunk/sandbox/manpage-writer/expected/man-de.1.utf8
   trunk/sandbox/manpage-writer/expected/optionslisttest.latin1
   trunk/sandbox/manpage-writer/expected/optionslisttest.man
   trunk/sandbox/manpage-writer/expected/test.latin1
   trunk/sandbox/manpage-writer/expected/test.man
Log:
Fix: BUG#3219183 - vertical space in definition lists containing markup.

Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt	2011-06-04 09:42:40 UTC (rev 7047)
+++ trunk/docutils/HISTORY.txt	2011-06-04 12:35:19 UTC (rev 7048)
 <at>  <at>  -71,6 +71,7  <at>  <at> 

 * docutils/writers/manpage.py

+  - Fix: BUG#3219183 - vertical space in definition lists containing markup.
   - Fix: vertical space cleaning for option group ``.``.

(Continue reading)

grubert | 4 Jun 14:42 2011
Picon

r7049 - trunk/docutils/test/test_writers/test_manpage.py

Author: grubert
Date: 2011-06-04 14:42:40 +0200 (Sat, 04 Jun 2011)
New Revision: 7049

Modified:
   trunk/docutils/test/test_writers/test_manpage.py
Log:
Changes to Fix for BUG#3219183

Modified: trunk/docutils/test/test_writers/test_manpage.py
===================================================================
--- trunk/docutils/test/test_writers/test_manpage.py	2011-06-04 12:35:19 UTC (rev 7048)
+++ trunk/docutils/test/test_writers/test_manpage.py	2011-06-04 12:42:40 UTC (rev 7049)
 <at>  <at>  -124,15 +124,12  <at>  <at> 
 .INDENT 0.0
 .TP
 .BI \-\-config\fB= <file>
-.
 Read configuration settings from <file>, if it exists.
 .TP
 .B \-\-version,  \-V
-.
 Show this program\(aqs version number and exit.
 .TP
 .B \-\-help,  \-h
-.
 Show this help message and exit.
 .UNINDENT
 .SH OTHER SECTION
 <at>  <at>  -223,36 +220,30  <at>  <at> 
(Continue reading)

grubert | 4 Jun 16:40 2011
Picon

r7050 - trunk/docutils/test/alltests.py

Author: grubert
Date: 2011-06-04 16:40:41 +0200 (Sat, 04 Jun 2011)
New Revision: 7050

Modified:
   trunk/docutils/test/alltests.py
Log:
Add encoding to class Tee.

Modified: trunk/docutils/test/alltests.py
===================================================================
--- trunk/docutils/test/alltests.py	2011-06-04 12:42:40 UTC (rev 7049)
+++ trunk/docutils/test/alltests.py	2011-06-04 14:40:41 UTC (rev 7050)
 <at>  <at>  -30,6 +30,7  <at>  <at> 
     def __init__(self, filename, stream=sys.__stdout__):
         self.file = open(filename, 'w')
         self.stream = stream
+        self.encoding = stream.encoding

     def write(self, string):
         self.stream.write(string)

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
grubert | 4 Jun 16:44 2011
Picon

r7051 - trunk/docutils/test/functional/expected/standalone_rst_manpage.man

Author: grubert
Date: 2011-06-04 16:44:13 +0200 (Sat, 04 Jun 2011)
New Revision: 7051

Modified:
   trunk/docutils/test/functional/expected/standalone_rst_manpage.man
Log:
Fix manpage writer functional test due to BUG#3219183 

Modified: trunk/docutils/test/functional/expected/standalone_rst_manpage.man
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_manpage.man	2011-06-04 14:40:41
UTC (rev 7050)
+++ trunk/docutils/test/functional/expected/standalone_rst_manpage.man	2011-06-04 14:44:13
UTC (rev 7051)
 <at>  <at>  -35,7 +35,6  <at>  <at> 
 .SH SYNOPSIS
 .INDENT 0.0
 .INDENT 3.5
-.sp
 rst2man.py inputfile outputfile
 .UNINDENT
 .UNINDENT
 <at>  <at>  -47,10 +46,8  <at>  <at> 
 in reality this is
 .INDENT 0.0
 .IP \(bu 2
-.
 a goal, that is not met yet
 .IP \(bu 2
(Continue reading)


Gmane