You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(3) |
Sep
(15) |
Oct
(21) |
Nov
(18) |
Dec
(59) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(43) |
Feb
(35) |
Mar
(78) |
Apr
(65) |
May
(163) |
Jun
(169) |
Jul
(137) |
Aug
(77) |
Sep
(47) |
Oct
(27) |
Nov
(43) |
Dec
(68) |
2004 |
Jan
(61) |
Feb
(39) |
Mar
(11) |
Apr
(42) |
May
(86) |
Jun
(82) |
Jul
(24) |
Aug
(26) |
Sep
(37) |
Oct
(62) |
Nov
(131) |
Dec
(43) |
2005 |
Jan
(31) |
Feb
(56) |
Mar
(65) |
Apr
(165) |
May
(106) |
Jun
(97) |
Jul
(65) |
Aug
(150) |
Sep
(78) |
Oct
(115) |
Nov
(41) |
Dec
(26) |
2006 |
Jan
(50) |
Feb
(39) |
Mar
(56) |
Apr
(67) |
May
(89) |
Jun
(68) |
Jul
(116) |
Aug
(65) |
Sep
(58) |
Oct
(103) |
Nov
(28) |
Dec
(52) |
2007 |
Jan
(92) |
Feb
(60) |
Mar
(124) |
Apr
(96) |
May
(69) |
Jun
(79) |
Jul
(25) |
Aug
(22) |
Sep
(7) |
Oct
(17) |
Nov
(27) |
Dec
(32) |
2008 |
Jan
(57) |
Feb
(87) |
Mar
(51) |
Apr
(43) |
May
(56) |
Jun
(62) |
Jul
(25) |
Aug
(82) |
Sep
(58) |
Oct
(42) |
Nov
(38) |
Dec
(86) |
2009 |
Jan
(50) |
Feb
(33) |
Mar
(84) |
Apr
(90) |
May
(109) |
Jun
(37) |
Jul
(22) |
Aug
(51) |
Sep
(93) |
Oct
(86) |
Nov
(31) |
Dec
(62) |
2010 |
Jan
(33) |
Feb
(57) |
Mar
(62) |
Apr
(43) |
May
(30) |
Jun
(49) |
Jul
(20) |
Aug
(40) |
Sep
(152) |
Oct
(38) |
Nov
(15) |
Dec
(32) |
2011 |
Jan
(29) |
Feb
(25) |
Mar
(65) |
Apr
(45) |
May
(27) |
Jun
(11) |
Jul
(14) |
Aug
(8) |
Sep
(13) |
Oct
(117) |
Nov
(60) |
Dec
(19) |
2012 |
Jan
(23) |
Feb
(32) |
Mar
(24) |
Apr
(41) |
May
(56) |
Jun
(24) |
Jul
(15) |
Aug
(11) |
Sep
(26) |
Oct
(21) |
Nov
(12) |
Dec
(31) |
2013 |
Jan
(32) |
Feb
(24) |
Mar
(39) |
Apr
(44) |
May
(44) |
Jun
(8) |
Jul
(9) |
Aug
(12) |
Sep
(34) |
Oct
(19) |
Nov
(5) |
Dec
(9) |
2014 |
Jan
(22) |
Feb
(12) |
Mar
(7) |
Apr
(2) |
May
(13) |
Jun
(17) |
Jul
(8) |
Aug
(10) |
Sep
(7) |
Oct
(4) |
Nov
|
Dec
(39) |
2015 |
Jan
(13) |
Feb
(12) |
Mar
(12) |
Apr
(40) |
May
(5) |
Jun
(22) |
Jul
(3) |
Aug
(42) |
Sep
(5) |
Oct
(10) |
Nov
|
Dec
(10) |
2016 |
Jan
(9) |
Feb
(43) |
Mar
(5) |
Apr
(14) |
May
(17) |
Jun
(5) |
Jul
(5) |
Aug
(22) |
Sep
(5) |
Oct
|
Nov
(4) |
Dec
(18) |
2017 |
Jan
(28) |
Feb
(29) |
Mar
(9) |
Apr
(23) |
May
(48) |
Jun
(5) |
Jul
(32) |
Aug
(9) |
Sep
(13) |
Oct
(13) |
Nov
(6) |
Dec
(4) |
2018 |
Jan
(6) |
Feb
(5) |
Mar
(1) |
Apr
(2) |
May
(5) |
Jun
(17) |
Jul
(12) |
Aug
(15) |
Sep
|
Oct
(2) |
Nov
|
Dec
|
2019 |
Jan
|
Feb
(6) |
Mar
(3) |
Apr
(5) |
May
(10) |
Jun
(6) |
Jul
(6) |
Aug
|
Sep
(11) |
Oct
(18) |
Nov
(10) |
Dec
(7) |
2020 |
Jan
(3) |
Feb
(14) |
Mar
(2) |
Apr
(1) |
May
(5) |
Jun
|
Jul
(1) |
Aug
(11) |
Sep
(8) |
Oct
|
Nov
(1) |
Dec
(14) |
2021 |
Jan
(7) |
Feb
(2) |
Mar
(1) |
Apr
(8) |
May
(23) |
Jun
(7) |
Jul
(10) |
Aug
(1) |
Sep
|
Oct
(7) |
Nov
(10) |
Dec
(2) |
2022 |
Jan
|
Feb
(21) |
Mar
|
Apr
(3) |
May
(7) |
Jun
(4) |
Jul
(1) |
Aug
|
Sep
(3) |
Oct
|
Nov
|
Dec
|
2023 |
Jan
(18) |
Feb
|
Mar
(1) |
Apr
|
May
(9) |
Jun
|
Jul
|
Aug
(5) |
Sep
|
Oct
|
Nov
|
Dec
|
2024 |
Jan
|
Feb
(2) |
Mar
(3) |
Apr
(5) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
(2) |
2025 |
Jan
(4) |
Feb
|
Mar
(2) |
Apr
(1) |
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1
|
2
|
3
|
4
|
5
(1) |
6
(4) |
7
|
8
|
9
(3) |
10
(3) |
11
|
12
|
13
|
14
|
15
|
16
|
17
|
18
|
19
|
20
|
21
|
22
|
23
|
24
|
25
|
26
(6) |
27
|
28
|
29
|
30
|
|
|
|
|
|
From: David B. <dav...@gm...> - 2014-06-26 18:32:09
|
> > - distributing a document generated on a not "C:" drive would make the > stylesheet path > wrong on most other machines, for sure on any unix(mac/linux That argument is reasonable. Apart from that you've just to deal with the fact that the 4 errors are thrown on Windows when using absolute paths. Relative paths could be a solution but maybe that's sometimes not desired. I suppose you can solve the problem only with a configuration-option where every user can decide. You still can recommend one solution. Btw I built the tests from a subdirectory and not directly in C:\, so the value would be wrong, no matter if "C:/test.css" or "/test.css". In my opinion here it would be reasonable to built the paths really relative. David |
From: Pete J. <je...@an...> - 2014-06-26 17:31:31
|
Isn't Windows a bit different in handling directories and disks? /mypath/ starts at the root of the default disk If your default disk is C:, doesn't it point to C:/mypath/ F:, doesn't it point to F:/mypath/ Engelbert's rule 1 (below) does not describe this. HTH, Pete On 6/26/2014 12:17 PM, David Bruchmann wrote: > Hello Engelbert, > > I know that a path like /mypath/ without "C:" works in Windows. > Nevertheless 'C:' can be seen as the root-folder of any directory in > comparison to linux. > Without drive-letter you can't access a file of another drive that's > the same as you try to access /home/myFile.txt which is resided in > /usr/myFile.txt. > Therefore the drive-letter should left untouched as you wrote. > In general the result is correct in my opinion. > > I think the tests should be adjusted NOT to throw an error > I don't know how to adjust the expected value as I never had a look in > the source-code but that's secondary. Sense of the tests is not to > make a 100% string-comparison but to test if the values are correct > and work, right? > > David > > On 6/26/14, engelbert gruber <eng...@gm...> wrote: >> thanks for mentioning >> >> somehow this is in my workpile >> but i do not know how to solve >> >> ans therefore i am very interested opinions >> >> facts (as i remember) >> >> 1. a configured stylesheet "/style.css" results in an absolute path >> "c:/style.css" on windows. >> 2. a styleshhet inculding the drive letter only works for >> >> - reading locally with the borwser >> - only necessary if the stylesheet is on drive c: and the documents on >> another dirv >> otherwise the document would work without the drive letter >> - in the theoretic case of a server templating system with a >> postprocessor >> removing the driveletter, before serving via http. >> >> therefore i would opt for removing of the drive letter. >> but the procedure prepending it is used all over docutils >> and if someone specifies "f:/test.css" the driveletter must be left >> untouched. >> >> >> >> >> >> On 26 June 2014 12:04, David Bruchmann <dav...@gm...> wrote: >> >>> Hello, >>> >>> I've the same bug as http://sourceforge.net/p/docutils/bugs/243/ but >>> can't >>> login in the moment to sourceforge.net. >>> >>> Here are more details: >>> primary it's always the same 'fault' (4 times): >>> >>> >>> -: expected >>> +: output >>> - <link rel="stylesheet" href="/https/sourceforge.net/test.css" type="text/css" />""" >>> + <link rel="stylesheet" href="C:/test.css" type="text/css" />""" >>> >>> Here is still my alltests.out: >>> ------------------------------ >>> Testing Docutils 0.11 [release] with Python 2.7.6 on 2014-06-26 at >>> 16:13:05 >>> Working directory: C:\Users\d_admin\Downloads\docutils-0.11\test >>> Docutils package: C:\Users\d_admin\Downloads\docutils-0.11\docutils >>> >>> test_writers\test_html4css1_template.py: totest['template'][0]; >>> test_publish >>> (DocutilsTestSupport.WriterPublishTestCase) >>> input: >>> ================ >>> Document Title >>> ================ >>> ---------- >>> Subtitle >>> ---------- >>> >>> :Author: Me >>> >>> .. footer:: footer text >>> >>> Section >>> ======= >>> >>> Some text. >>> >>> -: expected >>> +: output >>> head_prefix = """\ >>> <?xml version="1.0" encoding="utf-8" ?> >>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> >>> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> >>> <head>""" >>> >>> >>> head = """\ >>> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> >>> <meta name="generator" content="Docutils 0.11: >>> http://docutils.sourceforge.net/" /> >>> <title>Document Title</title> >>> <meta name="author" content="Me" />""" >>> >>> >>> stylesheet = """\ >>> - <link rel="stylesheet" href="/https/sourceforge.net/test.css" type="text/css" />""" >>> + <link rel="stylesheet" href="C:/test.css" type="text/css" />""" >>> ? ++ >>> >>> >>> body_prefix = """\ >>> </head> >>> <body> >>> <div class="document" id="document-title">""" >>> >>> >>> body_pre_docinfo = """\ >>> <h1 class="title">Document Title</h1> >>> <h2 class="subtitle" id="subtitle">Subtitle</h2>""" >>> >>> >>> docinfo = """\ >>> <table class="docinfo" frame="void" rules="none"> >>> <col class="docinfo-name" /> >>> <col class="docinfo-content" /> >>> <tbody valign="top"> >>> <tr><th class="docinfo-name">Author:</th> >>> <td>Me</td></tr> >>> </tbody> >>> </table>""" >>> >>> >>> body = """\ >>> <div class="section" id="section"> >>> <h1>Section</h1> >>> <p>Some text.</p> >>> </div>""" >>> >>> >>> body_suffix = """\ >>> </div> >>> <div class="footer"> >>> <hr class="footer" /> >>> footer text >>> </div> >>> </body> >>> </html>""" >>> >>> >>> head_prefix = """\ >>> <?xml version="1.0" encoding="utf-8" ?> >>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> >>> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> >>> <head>""" >>> >>> >>> head = """\ >>> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> >>> <meta name="generator" content="Docutils 0.11: >>> http://docutils.sourceforge.net/" /> >>> <title>Document Title</title> >>> <meta name="author" content="Me" />""" >>> >>> >>> stylesheet = """\ >>> - <link rel="stylesheet" href="/https/sourceforge.net/test.css" type="text/css" />""" >>> + <link rel="stylesheet" href="C:/test.css" type="text/css" />""" >>> ? ++ >>> >>> >>> body_prefix = """\ >>> </head> >>> <body> >>> <div class="document" id="document-title">""" >>> >>> >>> body_pre_docinfo = """\ >>> <h1 class="title">Document Title</h1> >>> <h2 class="subtitle" id="subtitle">Subtitle</h2>""" >>> >>> >>> docinfo = """\ >>> <table class="docinfo" frame="void" rules="none"> >>> <col class="docinfo-name" /> >>> <col class="docinfo-content" /> >>> <tbody valign="top"> >>> <tr><th class="docinfo-name">Author:</th> >>> <td>Me</td></tr> >>> </tbody> >>> </table>""" >>> >>> >>> body = """\ >>> <div class="section" id="section"> >>> <h1>Section</h1> >>> <p>Some text.</p> >>> </div>""" >>> >>> >>> body_suffix = """\ >>> </div> >>> <div class="footer"> >>> <hr class="footer" /> >>> footer text >>> </div> >>> </body> >>> </html>""" >>> >>> >>> title = """\ >>> Document Title""" >>> >>> >>> subtitle = """\ >>> Subtitle""" >>> >>> >>> header = """\ >>> """ >>> >>> >>> footer = """\ >>> <div class="footer"> >>> <hr class="footer" /> >>> footer text >>> </div>""" >>> >>> >>> meta = """\ >>> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> >>> <meta name="generator" content="Docutils 0.11: >>> http://docutils.sourceforge.net/" /> >>> <meta name="author" content="Me" />""" >>> >>> >>> fragment = """\ >>> <div class="section" id="section"> >>> <h1>Section</h1> >>> <p>Some text.</p> >>> </div>""" >>> >>> >>> html_prolog = """\ >>> <?xml version="1.0" encoding="%s" ?> >>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">""" >>> >>> >>> html_head = """\ >>> <meta http-equiv="Content-Type" content="text/html; charset=%s" /> >>> <meta name="generator" content="Docutils 0.11: >>> http://docutils.sourceforge.net/" /> >>> <title>Document Title</title> >>> <meta name="author" content="Me" />""" >>> >>> >>> html_title = """\ >>> <h1 class="title">Document Title</h1>""" >>> >>> >>> html_subtitle = """\ >>> <h2 class="subtitle" id="subtitle">Subtitle</h2>""" >>> >>> >>> html_body = """\ >>> <div class="document" id="document-title"> >>> <h1 class="title">Document Title</h1> >>> <h2 class="subtitle" id="subtitle">Subtitle</h2> >>> <table class="docinfo" frame="void" rules="none"> >>> <col class="docinfo-name" /> >>> <col class="docinfo-content" /> >>> <tbody valign="top"> >>> <tr><th class="docinfo-name">Author:</th> >>> <td>Me</td></tr> >>> </tbody> >>> </table> >>> <div class="section" id="section"> >>> <h1>Section</h1> >>> <p>Some text.</p> >>> </div> >>> </div> >>> <div class="footer"> >>> <hr class="footer" /> >>> footer text >>> </div>""" >>> >>> test_writers\test_s5.py: totest['basics'][0]; test_publish >>> (DocutilsTestSupport.WriterPublishTestCase) >>> input: >>> ============ >>> Show Title >>> ============ >>> >>> Title slide >>> >>> First Slide >>> =========== >>> >>> Slide text. >>> >>> -: expected >>> +: output >>> <?xml version="1.0" encoding="utf-8" ?> >>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> >>> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> >>> <head> >>> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> >>> <meta name="generator" content="Docutils 0.11: >>> http://docutils.sourceforge.net/" /> >>> <meta name="version" content="S5 1.1" /> >>> <title>Show Title</title> >>> - <link rel="stylesheet" href="/https/sourceforge.net/test.css" type="text/css" /> >>> + <link rel="stylesheet" href="C:/test.css" type="text/css" /> >>> ? ++ >>> <!-- configuration parameters --> >>> <meta name="defaultView" content="slideshow" /> >>> <meta name="controlVis" content="hidden" /> >>> <!-- style sheet links --> >>> <script src="ui/default/slides.js" type="text/javascript"></script> >>> <link rel="stylesheet" href="ui/default/slides.css" >>> type="text/css" media="projection" id="slideProj" /> >>> <link rel="stylesheet" href="ui/default/outline.css" >>> type="text/css" media="screen" id="outlineStyle" /> >>> <link rel="stylesheet" href="ui/default/print.css" >>> type="text/css" media="print" id="slidePrint" /> >>> <link rel="stylesheet" href="ui/default/opera.css" >>> type="text/css" media="projection" id="operaFix" /> >>> >>> <style type="text/css"> >>> #currentSlide {display: none;} >>> </style> >>> </head> >>> <body> >>> <div class="layout"> >>> <div id="controls"></div> >>> <div id="currentSlide"></div> >>> <div id="header"> >>> >>> </div> >>> <div id="footer"> >>> <h1>Show Title</h1> >>> >>> </div> >>> </div> >>> <div class="presentation"> >>> <div class="slide" id="slide0"> >>> <h1 class="title">Show Title</h1> >>> >>> <p>Title slide</p> >>> >>> </div> >>> <div class="slide" id="first-slide"> >>> <h1>First Slide</h1> >>> <p>Slide text.</p> >>> </div> >>> </div> >>> </body> >>> </html> >>> >>> test_writers\test_s5.py: totest['settings'][0]; test_publish >>> (DocutilsTestSupport.WriterPublishTestCase) >>> input: >>> ================== >>> Bogus Slide Show >>> ================== >>> >>> We're just checking the settings >>> >>> -: expected >>> +: output >>> <?xml version="1.0" encoding="utf-8" ?> >>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> >>> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> >>> <head> >>> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> >>> <meta name="generator" content="Docutils 0.11: >>> http://docutils.sourceforge.net/" /> >>> <meta name="version" content="S5 1.1" /> >>> <title>Bogus Slide Show</title> >>> - <link rel="stylesheet" href="/https/sourceforge.net/test.css" type="text/css" /> >>> + <link rel="stylesheet" href="C:/test.css" type="text/css" /> >>> ? ++ >>> <!-- configuration parameters --> >>> <meta name="defaultView" content="outline" /> >>> <meta name="controlVis" content="visible" /> >>> <!-- style sheet links --> >>> <script src="ui/default/slides.js" type="text/javascript"></script> >>> <link rel="stylesheet" href="ui/default/slides.css" >>> type="text/css" media="projection" id="slideProj" /> >>> <link rel="stylesheet" href="ui/default/outline.css" >>> type="text/css" media="screen" id="outlineStyle" /> >>> <link rel="stylesheet" href="ui/default/print.css" >>> type="text/css" media="print" id="slidePrint" /> >>> <link rel="stylesheet" href="ui/default/opera.css" >>> type="text/css" media="projection" id="operaFix" /> >>> >>> <style type="text/css"> >>> #currentSlide {display: none;} >>> </style> >>> </head> >>> <body> >>> <div class="layout"> >>> <div id="controls"></div> >>> <div id="currentSlide"></div> >>> <div id="header"> >>> >>> </div> >>> <div id="footer"> >>> <h1>Bogus Slide Show</h1> >>> >>> </div> >>> </div> >>> <div class="presentation"> >>> <div class="slide" id="slide0"> >>> <h1 class="title">Bogus Slide Show</h1> >>> >>> <p>We're just checking the settings</p> >>> </div> >>> </div> >>> </body> >>> </html> >>> Elapsed time: 57.993 seconds >>> >>> ------------------------------ >>> >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Open source business process management suite built on Java and Eclipse >>> Turn processes into business applications with Bonita BPM Community >>> Edition >>> Quickly connect people, data, and systems into organized workflows >>> Winner of BOSSIE, CODIE, OW2 and Gartner awards >>> http://p.sf.net/sfu/Bonitasoft >>> _______________________________________________ >>> Docutils-users mailing list >>> Doc...@li... >>> https://lists.sourceforge.net/lists/listinfo/docutils-users >>> >>> Please use "Reply All" to reply to the list. >>> >> > > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > _______________________________________________ > Docutils-users mailing list > Doc...@li... > https://lists.sourceforge.net/lists/listinfo/docutils-users > > Please use "Reply All" to reply to the list. > -- ---------------------------------------------------------- Pete R. Jemian, Ph.D. <je...@an...> Beam line Controls and Data Acquisition, Group Leader Advanced Photon Source, Argonne National Laboratory Argonne, IL 60439 630 - 252 - 3189 ----------------------------------------------------------- Education is the one thing for which people are willing to pay yet not receive. ----------------------------------------------------------- |
From: David B. <dav...@gm...> - 2014-06-26 17:17:59
|
Hello Engelbert, I know that a path like /mypath/ without "C:" works in Windows. Nevertheless 'C:' can be seen as the root-folder of any directory in comparison to linux. Without drive-letter you can't access a file of another drive that's the same as you try to access /home/myFile.txt which is resided in /usr/myFile.txt. Therefore the drive-letter should left untouched as you wrote. In general the result is correct in my opinion. I think the tests should be adjusted NOT to throw an error I don't know how to adjust the expected value as I never had a look in the source-code but that's secondary. Sense of the tests is not to make a 100% string-comparison but to test if the values are correct and work, right? David On 6/26/14, engelbert gruber <eng...@gm...> wrote: > thanks for mentioning > > somehow this is in my workpile > but i do not know how to solve > > ans therefore i am very interested opinions > > facts (as i remember) > > 1. a configured stylesheet "/style.css" results in an absolute path > "c:/style.css" on windows. > 2. a styleshhet inculding the drive letter only works for > > - reading locally with the borwser > - only necessary if the stylesheet is on drive c: and the documents on > another dirv > otherwise the document would work without the drive letter > - in the theoretic case of a server templating system with a > postprocessor > removing the driveletter, before serving via http. > > therefore i would opt for removing of the drive letter. > but the procedure prepending it is used all over docutils > and if someone specifies "f:/test.css" the driveletter must be left > untouched. > > > > > > On 26 June 2014 12:04, David Bruchmann <dav...@gm...> wrote: > >> Hello, >> >> I've the same bug as http://sourceforge.net/p/docutils/bugs/243/ but >> can't >> login in the moment to sourceforge.net. >> >> Here are more details: >> primary it's always the same 'fault' (4 times): >> >> >> -: expected >> +: output >> - <link rel="stylesheet" href="/https/sourceforge.net/test.css" type="text/css" />""" >> + <link rel="stylesheet" href="C:/test.css" type="text/css" />""" >> >> Here is still my alltests.out: >> ------------------------------ >> Testing Docutils 0.11 [release] with Python 2.7.6 on 2014-06-26 at >> 16:13:05 >> Working directory: C:\Users\d_admin\Downloads\docutils-0.11\test >> Docutils package: C:\Users\d_admin\Downloads\docutils-0.11\docutils >> >> test_writers\test_html4css1_template.py: totest['template'][0]; >> test_publish >> (DocutilsTestSupport.WriterPublishTestCase) >> input: >> ================ >> Document Title >> ================ >> ---------- >> Subtitle >> ---------- >> >> :Author: Me >> >> .. footer:: footer text >> >> Section >> ======= >> >> Some text. >> >> -: expected >> +: output >> head_prefix = """\ >> <?xml version="1.0" encoding="utf-8" ?> >> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> >> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> >> <head>""" >> >> >> head = """\ >> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> >> <meta name="generator" content="Docutils 0.11: >> http://docutils.sourceforge.net/" /> >> <title>Document Title</title> >> <meta name="author" content="Me" />""" >> >> >> stylesheet = """\ >> - <link rel="stylesheet" href="/https/sourceforge.net/test.css" type="text/css" />""" >> + <link rel="stylesheet" href="C:/test.css" type="text/css" />""" >> ? ++ >> >> >> body_prefix = """\ >> </head> >> <body> >> <div class="document" id="document-title">""" >> >> >> body_pre_docinfo = """\ >> <h1 class="title">Document Title</h1> >> <h2 class="subtitle" id="subtitle">Subtitle</h2>""" >> >> >> docinfo = """\ >> <table class="docinfo" frame="void" rules="none"> >> <col class="docinfo-name" /> >> <col class="docinfo-content" /> >> <tbody valign="top"> >> <tr><th class="docinfo-name">Author:</th> >> <td>Me</td></tr> >> </tbody> >> </table>""" >> >> >> body = """\ >> <div class="section" id="section"> >> <h1>Section</h1> >> <p>Some text.</p> >> </div>""" >> >> >> body_suffix = """\ >> </div> >> <div class="footer"> >> <hr class="footer" /> >> footer text >> </div> >> </body> >> </html>""" >> >> >> head_prefix = """\ >> <?xml version="1.0" encoding="utf-8" ?> >> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> >> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> >> <head>""" >> >> >> head = """\ >> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> >> <meta name="generator" content="Docutils 0.11: >> http://docutils.sourceforge.net/" /> >> <title>Document Title</title> >> <meta name="author" content="Me" />""" >> >> >> stylesheet = """\ >> - <link rel="stylesheet" href="/https/sourceforge.net/test.css" type="text/css" />""" >> + <link rel="stylesheet" href="C:/test.css" type="text/css" />""" >> ? ++ >> >> >> body_prefix = """\ >> </head> >> <body> >> <div class="document" id="document-title">""" >> >> >> body_pre_docinfo = """\ >> <h1 class="title">Document Title</h1> >> <h2 class="subtitle" id="subtitle">Subtitle</h2>""" >> >> >> docinfo = """\ >> <table class="docinfo" frame="void" rules="none"> >> <col class="docinfo-name" /> >> <col class="docinfo-content" /> >> <tbody valign="top"> >> <tr><th class="docinfo-name">Author:</th> >> <td>Me</td></tr> >> </tbody> >> </table>""" >> >> >> body = """\ >> <div class="section" id="section"> >> <h1>Section</h1> >> <p>Some text.</p> >> </div>""" >> >> >> body_suffix = """\ >> </div> >> <div class="footer"> >> <hr class="footer" /> >> footer text >> </div> >> </body> >> </html>""" >> >> >> title = """\ >> Document Title""" >> >> >> subtitle = """\ >> Subtitle""" >> >> >> header = """\ >> """ >> >> >> footer = """\ >> <div class="footer"> >> <hr class="footer" /> >> footer text >> </div>""" >> >> >> meta = """\ >> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> >> <meta name="generator" content="Docutils 0.11: >> http://docutils.sourceforge.net/" /> >> <meta name="author" content="Me" />""" >> >> >> fragment = """\ >> <div class="section" id="section"> >> <h1>Section</h1> >> <p>Some text.</p> >> </div>""" >> >> >> html_prolog = """\ >> <?xml version="1.0" encoding="%s" ?> >> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">""" >> >> >> html_head = """\ >> <meta http-equiv="Content-Type" content="text/html; charset=%s" /> >> <meta name="generator" content="Docutils 0.11: >> http://docutils.sourceforge.net/" /> >> <title>Document Title</title> >> <meta name="author" content="Me" />""" >> >> >> html_title = """\ >> <h1 class="title">Document Title</h1>""" >> >> >> html_subtitle = """\ >> <h2 class="subtitle" id="subtitle">Subtitle</h2>""" >> >> >> html_body = """\ >> <div class="document" id="document-title"> >> <h1 class="title">Document Title</h1> >> <h2 class="subtitle" id="subtitle">Subtitle</h2> >> <table class="docinfo" frame="void" rules="none"> >> <col class="docinfo-name" /> >> <col class="docinfo-content" /> >> <tbody valign="top"> >> <tr><th class="docinfo-name">Author:</th> >> <td>Me</td></tr> >> </tbody> >> </table> >> <div class="section" id="section"> >> <h1>Section</h1> >> <p>Some text.</p> >> </div> >> </div> >> <div class="footer"> >> <hr class="footer" /> >> footer text >> </div>""" >> >> test_writers\test_s5.py: totest['basics'][0]; test_publish >> (DocutilsTestSupport.WriterPublishTestCase) >> input: >> ============ >> Show Title >> ============ >> >> Title slide >> >> First Slide >> =========== >> >> Slide text. >> >> -: expected >> +: output >> <?xml version="1.0" encoding="utf-8" ?> >> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> >> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> >> <head> >> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> >> <meta name="generator" content="Docutils 0.11: >> http://docutils.sourceforge.net/" /> >> <meta name="version" content="S5 1.1" /> >> <title>Show Title</title> >> - <link rel="stylesheet" href="/https/sourceforge.net/test.css" type="text/css" /> >> + <link rel="stylesheet" href="C:/test.css" type="text/css" /> >> ? ++ >> <!-- configuration parameters --> >> <meta name="defaultView" content="slideshow" /> >> <meta name="controlVis" content="hidden" /> >> <!-- style sheet links --> >> <script src="ui/default/slides.js" type="text/javascript"></script> >> <link rel="stylesheet" href="ui/default/slides.css" >> type="text/css" media="projection" id="slideProj" /> >> <link rel="stylesheet" href="ui/default/outline.css" >> type="text/css" media="screen" id="outlineStyle" /> >> <link rel="stylesheet" href="ui/default/print.css" >> type="text/css" media="print" id="slidePrint" /> >> <link rel="stylesheet" href="ui/default/opera.css" >> type="text/css" media="projection" id="operaFix" /> >> >> <style type="text/css"> >> #currentSlide {display: none;} >> </style> >> </head> >> <body> >> <div class="layout"> >> <div id="controls"></div> >> <div id="currentSlide"></div> >> <div id="header"> >> >> </div> >> <div id="footer"> >> <h1>Show Title</h1> >> >> </div> >> </div> >> <div class="presentation"> >> <div class="slide" id="slide0"> >> <h1 class="title">Show Title</h1> >> >> <p>Title slide</p> >> >> </div> >> <div class="slide" id="first-slide"> >> <h1>First Slide</h1> >> <p>Slide text.</p> >> </div> >> </div> >> </body> >> </html> >> >> test_writers\test_s5.py: totest['settings'][0]; test_publish >> (DocutilsTestSupport.WriterPublishTestCase) >> input: >> ================== >> Bogus Slide Show >> ================== >> >> We're just checking the settings >> >> -: expected >> +: output >> <?xml version="1.0" encoding="utf-8" ?> >> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> >> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> >> <head> >> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> >> <meta name="generator" content="Docutils 0.11: >> http://docutils.sourceforge.net/" /> >> <meta name="version" content="S5 1.1" /> >> <title>Bogus Slide Show</title> >> - <link rel="stylesheet" href="/https/sourceforge.net/test.css" type="text/css" /> >> + <link rel="stylesheet" href="C:/test.css" type="text/css" /> >> ? ++ >> <!-- configuration parameters --> >> <meta name="defaultView" content="outline" /> >> <meta name="controlVis" content="visible" /> >> <!-- style sheet links --> >> <script src="ui/default/slides.js" type="text/javascript"></script> >> <link rel="stylesheet" href="ui/default/slides.css" >> type="text/css" media="projection" id="slideProj" /> >> <link rel="stylesheet" href="ui/default/outline.css" >> type="text/css" media="screen" id="outlineStyle" /> >> <link rel="stylesheet" href="ui/default/print.css" >> type="text/css" media="print" id="slidePrint" /> >> <link rel="stylesheet" href="ui/default/opera.css" >> type="text/css" media="projection" id="operaFix" /> >> >> <style type="text/css"> >> #currentSlide {display: none;} >> </style> >> </head> >> <body> >> <div class="layout"> >> <div id="controls"></div> >> <div id="currentSlide"></div> >> <div id="header"> >> >> </div> >> <div id="footer"> >> <h1>Bogus Slide Show</h1> >> >> </div> >> </div> >> <div class="presentation"> >> <div class="slide" id="slide0"> >> <h1 class="title">Bogus Slide Show</h1> >> >> <p>We're just checking the settings</p> >> </div> >> </div> >> </body> >> </html> >> Elapsed time: 57.993 seconds >> >> ------------------------------ >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Open source business process management suite built on Java and Eclipse >> Turn processes into business applications with Bonita BPM Community >> Edition >> Quickly connect people, data, and systems into organized workflows >> Winner of BOSSIE, CODIE, OW2 and Gartner awards >> http://p.sf.net/sfu/Bonitasoft >> _______________________________________________ >> Docutils-users mailing list >> Doc...@li... >> https://lists.sourceforge.net/lists/listinfo/docutils-users >> >> Please use "Reply All" to reply to the list. >> > |
From: engelbert g. <eng...@gm...> - 2014-06-26 16:55:53
|
thanks for mentioning somehow this is in my workpile but i do not know how to solve ans therefore i am very interested opinions facts (as i remember) 1. a configured stylesheet "/style.css" results in an absolute path "c:/style.css" on windows. 2. a styleshhet inculding the drive letter only works for - reading locally with the borwser - only necessary if the stylesheet is on drive c: and the documents on another dirv otherwise the document would work without the drive letter - in the theoretic case of a server templating system with a postprocessor removing the driveletter, before serving via http. therefore i would opt for removing of the drive letter. but the procedure prepending it is used all over docutils and if someone specifies "f:/test.css" the driveletter must be left untouched. On 26 June 2014 12:04, David Bruchmann <dav...@gm...> wrote: > Hello, > > I've the same bug as http://sourceforge.net/p/docutils/bugs/243/ but can't > login in the moment to sourceforge.net. > > Here are more details: > primary it's always the same 'fault' (4 times): > > > -: expected > +: output > - <link rel="stylesheet" href="/https/sourceforge.net/test.css" type="text/css" />""" > + <link rel="stylesheet" href="C:/test.css" type="text/css" />""" > > Here is still my alltests.out: > ------------------------------ > Testing Docutils 0.11 [release] with Python 2.7.6 on 2014-06-26 at 16:13:05 > Working directory: C:\Users\d_admin\Downloads\docutils-0.11\test > Docutils package: C:\Users\d_admin\Downloads\docutils-0.11\docutils > > test_writers\test_html4css1_template.py: totest['template'][0]; > test_publish > (DocutilsTestSupport.WriterPublishTestCase) > input: > ================ > Document Title > ================ > ---------- > Subtitle > ---------- > > :Author: Me > > .. footer:: footer text > > Section > ======= > > Some text. > > -: expected > +: output > head_prefix = """\ > <?xml version="1.0" encoding="utf-8" ?> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> > <head>""" > > > head = """\ > <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> > <meta name="generator" content="Docutils 0.11: > http://docutils.sourceforge.net/" /> > <title>Document Title</title> > <meta name="author" content="Me" />""" > > > stylesheet = """\ > - <link rel="stylesheet" href="/https/sourceforge.net/test.css" type="text/css" />""" > + <link rel="stylesheet" href="C:/test.css" type="text/css" />""" > ? ++ > > > body_prefix = """\ > </head> > <body> > <div class="document" id="document-title">""" > > > body_pre_docinfo = """\ > <h1 class="title">Document Title</h1> > <h2 class="subtitle" id="subtitle">Subtitle</h2>""" > > > docinfo = """\ > <table class="docinfo" frame="void" rules="none"> > <col class="docinfo-name" /> > <col class="docinfo-content" /> > <tbody valign="top"> > <tr><th class="docinfo-name">Author:</th> > <td>Me</td></tr> > </tbody> > </table>""" > > > body = """\ > <div class="section" id="section"> > <h1>Section</h1> > <p>Some text.</p> > </div>""" > > > body_suffix = """\ > </div> > <div class="footer"> > <hr class="footer" /> > footer text > </div> > </body> > </html>""" > > > head_prefix = """\ > <?xml version="1.0" encoding="utf-8" ?> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> > <head>""" > > > head = """\ > <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> > <meta name="generator" content="Docutils 0.11: > http://docutils.sourceforge.net/" /> > <title>Document Title</title> > <meta name="author" content="Me" />""" > > > stylesheet = """\ > - <link rel="stylesheet" href="/https/sourceforge.net/test.css" type="text/css" />""" > + <link rel="stylesheet" href="C:/test.css" type="text/css" />""" > ? ++ > > > body_prefix = """\ > </head> > <body> > <div class="document" id="document-title">""" > > > body_pre_docinfo = """\ > <h1 class="title">Document Title</h1> > <h2 class="subtitle" id="subtitle">Subtitle</h2>""" > > > docinfo = """\ > <table class="docinfo" frame="void" rules="none"> > <col class="docinfo-name" /> > <col class="docinfo-content" /> > <tbody valign="top"> > <tr><th class="docinfo-name">Author:</th> > <td>Me</td></tr> > </tbody> > </table>""" > > > body = """\ > <div class="section" id="section"> > <h1>Section</h1> > <p>Some text.</p> > </div>""" > > > body_suffix = """\ > </div> > <div class="footer"> > <hr class="footer" /> > footer text > </div> > </body> > </html>""" > > > title = """\ > Document Title""" > > > subtitle = """\ > Subtitle""" > > > header = """\ > """ > > > footer = """\ > <div class="footer"> > <hr class="footer" /> > footer text > </div>""" > > > meta = """\ > <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> > <meta name="generator" content="Docutils 0.11: > http://docutils.sourceforge.net/" /> > <meta name="author" content="Me" />""" > > > fragment = """\ > <div class="section" id="section"> > <h1>Section</h1> > <p>Some text.</p> > </div>""" > > > html_prolog = """\ > <?xml version="1.0" encoding="%s" ?> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">""" > > > html_head = """\ > <meta http-equiv="Content-Type" content="text/html; charset=%s" /> > <meta name="generator" content="Docutils 0.11: > http://docutils.sourceforge.net/" /> > <title>Document Title</title> > <meta name="author" content="Me" />""" > > > html_title = """\ > <h1 class="title">Document Title</h1>""" > > > html_subtitle = """\ > <h2 class="subtitle" id="subtitle">Subtitle</h2>""" > > > html_body = """\ > <div class="document" id="document-title"> > <h1 class="title">Document Title</h1> > <h2 class="subtitle" id="subtitle">Subtitle</h2> > <table class="docinfo" frame="void" rules="none"> > <col class="docinfo-name" /> > <col class="docinfo-content" /> > <tbody valign="top"> > <tr><th class="docinfo-name">Author:</th> > <td>Me</td></tr> > </tbody> > </table> > <div class="section" id="section"> > <h1>Section</h1> > <p>Some text.</p> > </div> > </div> > <div class="footer"> > <hr class="footer" /> > footer text > </div>""" > > test_writers\test_s5.py: totest['basics'][0]; test_publish > (DocutilsTestSupport.WriterPublishTestCase) > input: > ============ > Show Title > ============ > > Title slide > > First Slide > =========== > > Slide text. > > -: expected > +: output > <?xml version="1.0" encoding="utf-8" ?> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> > <head> > <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> > <meta name="generator" content="Docutils 0.11: > http://docutils.sourceforge.net/" /> > <meta name="version" content="S5 1.1" /> > <title>Show Title</title> > - <link rel="stylesheet" href="/https/sourceforge.net/test.css" type="text/css" /> > + <link rel="stylesheet" href="C:/test.css" type="text/css" /> > ? ++ > <!-- configuration parameters --> > <meta name="defaultView" content="slideshow" /> > <meta name="controlVis" content="hidden" /> > <!-- style sheet links --> > <script src="ui/default/slides.js" type="text/javascript"></script> > <link rel="stylesheet" href="ui/default/slides.css" > type="text/css" media="projection" id="slideProj" /> > <link rel="stylesheet" href="ui/default/outline.css" > type="text/css" media="screen" id="outlineStyle" /> > <link rel="stylesheet" href="ui/default/print.css" > type="text/css" media="print" id="slidePrint" /> > <link rel="stylesheet" href="ui/default/opera.css" > type="text/css" media="projection" id="operaFix" /> > > <style type="text/css"> > #currentSlide {display: none;} > </style> > </head> > <body> > <div class="layout"> > <div id="controls"></div> > <div id="currentSlide"></div> > <div id="header"> > > </div> > <div id="footer"> > <h1>Show Title</h1> > > </div> > </div> > <div class="presentation"> > <div class="slide" id="slide0"> > <h1 class="title">Show Title</h1> > > <p>Title slide</p> > > </div> > <div class="slide" id="first-slide"> > <h1>First Slide</h1> > <p>Slide text.</p> > </div> > </div> > </body> > </html> > > test_writers\test_s5.py: totest['settings'][0]; test_publish > (DocutilsTestSupport.WriterPublishTestCase) > input: > ================== > Bogus Slide Show > ================== > > We're just checking the settings > > -: expected > +: output > <?xml version="1.0" encoding="utf-8" ?> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> > <head> > <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> > <meta name="generator" content="Docutils 0.11: > http://docutils.sourceforge.net/" /> > <meta name="version" content="S5 1.1" /> > <title>Bogus Slide Show</title> > - <link rel="stylesheet" href="/https/sourceforge.net/test.css" type="text/css" /> > + <link rel="stylesheet" href="C:/test.css" type="text/css" /> > ? ++ > <!-- configuration parameters --> > <meta name="defaultView" content="outline" /> > <meta name="controlVis" content="visible" /> > <!-- style sheet links --> > <script src="ui/default/slides.js" type="text/javascript"></script> > <link rel="stylesheet" href="ui/default/slides.css" > type="text/css" media="projection" id="slideProj" /> > <link rel="stylesheet" href="ui/default/outline.css" > type="text/css" media="screen" id="outlineStyle" /> > <link rel="stylesheet" href="ui/default/print.css" > type="text/css" media="print" id="slidePrint" /> > <link rel="stylesheet" href="ui/default/opera.css" > type="text/css" media="projection" id="operaFix" /> > > <style type="text/css"> > #currentSlide {display: none;} > </style> > </head> > <body> > <div class="layout"> > <div id="controls"></div> > <div id="currentSlide"></div> > <div id="header"> > > </div> > <div id="footer"> > <h1>Bogus Slide Show</h1> > > </div> > </div> > <div class="presentation"> > <div class="slide" id="slide0"> > <h1 class="title">Bogus Slide Show</h1> > > <p>We're just checking the settings</p> > </div> > </div> > </body> > </html> > Elapsed time: 57.993 seconds > > ------------------------------ > > > > > > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > _______________________________________________ > Docutils-users mailing list > Doc...@li... > https://lists.sourceforge.net/lists/listinfo/docutils-users > > Please use "Reply All" to reply to the list. > |
From: Eduard B. <edu...@ae...> - 2014-06-26 11:42:13
|
Hello, I've been using docutils and reStructuredText to write a scientific document. While I'm fairly happy with the results so far, I have some trouble enumerating and referencing equations. It appears that docutils supports this in principle, as the signature of utils.math.pick_math_environment suggests. However, the LaTeX does not make use of this feature, as far as I can see. My current workaround is to change line 2529 of writers/latex2e/__init__.py from math_env = pick_math_environment(node.astext()) to math_env = pick_math_environment(node.astext(), numbered=True) This enables enumeration and allows me to label and reference my equations using raw LaTeX. While this solves my practical issue, I think it's not exactly an elegant solution. Is there a more straightforward and perhaps target-independent way to achieve this? Cheers, Eduard. |
From: David B. <dav...@gm...> - 2014-06-26 10:10:13
|
Hello, I've the same bug as http://sourceforge.net/p/docutils/bugs/243/ but can't login in the moment to sourceforge.net. Here are more details: primary it's always the same 'fault' (4 times): -: expected +: output - <link rel="stylesheet" href="/https/sourceforge.net/test.css" type="text/css" />""" + <link rel="stylesheet" href="C:/test.css" type="text/css" />""" Here is still my alltests.out: ------------------------------ Testing Docutils 0.11 [release] with Python 2.7.6 on 2014-06-26 at 16:13:05 Working directory: C:\Users\d_admin\Downloads\docutils-0.11\test Docutils package: C:\Users\d_admin\Downloads\docutils-0.11\docutils test_writers\test_html4css1_template.py: totest['template'][0]; test_publish (DocutilsTestSupport.WriterPublishTestCase) input: ================ Document Title ================ ---------- Subtitle ---------- :Author: Me .. footer:: footer text Section ======= Some text. -: expected +: output head_prefix = """\ <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head>""" head = """\ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.11: http://docutils.sourceforge.net/" /> <title>Document Title</title> <meta name="author" content="Me" />""" stylesheet = """\ - <link rel="stylesheet" href="/https/sourceforge.net/test.css" type="text/css" />""" + <link rel="stylesheet" href="C:/test.css" type="text/css" />""" ? ++ body_prefix = """\ </head> <body> <div class="document" id="document-title">""" body_pre_docinfo = """\ <h1 class="title">Document Title</h1> <h2 class="subtitle" id="subtitle">Subtitle</h2>""" docinfo = """\ <table class="docinfo" frame="void" rules="none"> <col class="docinfo-name" /> <col class="docinfo-content" /> <tbody valign="top"> <tr><th class="docinfo-name">Author:</th> <td>Me</td></tr> </tbody> </table>""" body = """\ <div class="section" id="section"> <h1>Section</h1> <p>Some text.</p> </div>""" body_suffix = """\ </div> <div class="footer"> <hr class="footer" /> footer text </div> </body> </html>""" head_prefix = """\ <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head>""" head = """\ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.11: http://docutils.sourceforge.net/" /> <title>Document Title</title> <meta name="author" content="Me" />""" stylesheet = """\ - <link rel="stylesheet" href="/https/sourceforge.net/test.css" type="text/css" />""" + <link rel="stylesheet" href="C:/test.css" type="text/css" />""" ? ++ body_prefix = """\ </head> <body> <div class="document" id="document-title">""" body_pre_docinfo = """\ <h1 class="title">Document Title</h1> <h2 class="subtitle" id="subtitle">Subtitle</h2>""" docinfo = """\ <table class="docinfo" frame="void" rules="none"> <col class="docinfo-name" /> <col class="docinfo-content" /> <tbody valign="top"> <tr><th class="docinfo-name">Author:</th> <td>Me</td></tr> </tbody> </table>""" body = """\ <div class="section" id="section"> <h1>Section</h1> <p>Some text.</p> </div>""" body_suffix = """\ </div> <div class="footer"> <hr class="footer" /> footer text </div> </body> </html>""" title = """\ Document Title""" subtitle = """\ Subtitle""" header = """\ """ footer = """\ <div class="footer"> <hr class="footer" /> footer text </div>""" meta = """\ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.11: http://docutils.sourceforge.net/" /> <meta name="author" content="Me" />""" fragment = """\ <div class="section" id="section"> <h1>Section</h1> <p>Some text.</p> </div>""" html_prolog = """\ <?xml version="1.0" encoding="%s" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">""" html_head = """\ <meta http-equiv="Content-Type" content="text/html; charset=%s" /> <meta name="generator" content="Docutils 0.11: http://docutils.sourceforge.net/" /> <title>Document Title</title> <meta name="author" content="Me" />""" html_title = """\ <h1 class="title">Document Title</h1>""" html_subtitle = """\ <h2 class="subtitle" id="subtitle">Subtitle</h2>""" html_body = """\ <div class="document" id="document-title"> <h1 class="title">Document Title</h1> <h2 class="subtitle" id="subtitle">Subtitle</h2> <table class="docinfo" frame="void" rules="none"> <col class="docinfo-name" /> <col class="docinfo-content" /> <tbody valign="top"> <tr><th class="docinfo-name">Author:</th> <td>Me</td></tr> </tbody> </table> <div class="section" id="section"> <h1>Section</h1> <p>Some text.</p> </div> </div> <div class="footer"> <hr class="footer" /> footer text </div>""" test_writers\test_s5.py: totest['basics'][0]; test_publish (DocutilsTestSupport.WriterPublishTestCase) input: ============ Show Title ============ Title slide First Slide =========== Slide text. -: expected +: output <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.11: http://docutils.sourceforge.net/" /> <meta name="version" content="S5 1.1" /> <title>Show Title</title> - <link rel="stylesheet" href="/https/sourceforge.net/test.css" type="text/css" /> + <link rel="stylesheet" href="C:/test.css" type="text/css" /> ? ++ <!-- configuration parameters --> <meta name="defaultView" content="slideshow" /> <meta name="controlVis" content="hidden" /> <!-- style sheet links --> <script src="ui/default/slides.js" type="text/javascript"></script> <link rel="stylesheet" href="ui/default/slides.css" type="text/css" media="projection" id="slideProj" /> <link rel="stylesheet" href="ui/default/outline.css" type="text/css" media="screen" id="outlineStyle" /> <link rel="stylesheet" href="ui/default/print.css" type="text/css" media="print" id="slidePrint" /> <link rel="stylesheet" href="ui/default/opera.css" type="text/css" media="projection" id="operaFix" /> <style type="text/css"> #currentSlide {display: none;} </style> </head> <body> <div class="layout"> <div id="controls"></div> <div id="currentSlide"></div> <div id="header"> </div> <div id="footer"> <h1>Show Title</h1> </div> </div> <div class="presentation"> <div class="slide" id="slide0"> <h1 class="title">Show Title</h1> <p>Title slide</p> </div> <div class="slide" id="first-slide"> <h1>First Slide</h1> <p>Slide text.</p> </div> </div> </body> </html> test_writers\test_s5.py: totest['settings'][0]; test_publish (DocutilsTestSupport.WriterPublishTestCase) input: ================== Bogus Slide Show ================== We're just checking the settings -: expected +: output <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.11: http://docutils.sourceforge.net/" /> <meta name="version" content="S5 1.1" /> <title>Bogus Slide Show</title> - <link rel="stylesheet" href="/https/sourceforge.net/test.css" type="text/css" /> + <link rel="stylesheet" href="C:/test.css" type="text/css" /> ? ++ <!-- configuration parameters --> <meta name="defaultView" content="outline" /> <meta name="controlVis" content="visible" /> <!-- style sheet links --> <script src="ui/default/slides.js" type="text/javascript"></script> <link rel="stylesheet" href="ui/default/slides.css" type="text/css" media="projection" id="slideProj" /> <link rel="stylesheet" href="ui/default/outline.css" type="text/css" media="screen" id="outlineStyle" /> <link rel="stylesheet" href="ui/default/print.css" type="text/css" media="print" id="slidePrint" /> <link rel="stylesheet" href="ui/default/opera.css" type="text/css" media="projection" id="operaFix" /> <style type="text/css"> #currentSlide {display: none;} </style> </head> <body> <div class="layout"> <div id="controls"></div> <div id="currentSlide"></div> <div id="header"> </div> <div id="footer"> <h1>Bogus Slide Show</h1> </div> </div> <div class="presentation"> <div class="slide" id="slide0"> <h1 class="title">Bogus Slide Show</h1> <p>We're just checking the settings</p> </div> </div> </body> </html> Elapsed time: 57.993 seconds ------------------------------ |
From: David G. <go...@py...> - 2014-06-10 19:41:53
|
> NotImplementedError: docutils.writers.wiki.TWikiTranslator visiting unknown > node type: transition I'm not Joshua, and I don't know the code in question, but the message above tells me that the wiki.py module simply doesn't handle "transition" nodes. You could either remove the transitions from your source, or add code to the wiki.py module to handle them. After you do that, if you get other similar "NotImplementedError" messages, you'll have to repeat the process. -- David Goodger On Tue, Jun 10, 2014 at 11:28 AM, McHugh, Michael <Mic...@bo...> wrote: > Hi Joshua, > > > > I am having some trouble converting some documents from RST to twiki format. > I wonder if there’s something obvious that I’m doing wrong... > > > > I am using Windows Python 2.7 within a Cygwin shell (although I get similar > output from a “cmd” shell window). > > > > I have copied the following files as indicated > > rst2wiki.py è C:\Python27\Scripts\ > > wiki.py è C:\Python27\Lib\site-packages\docutils\writers\ > > > > I get the following output: > > > > mm@laptop ~ > > $ /cygdrive/c/Python27/python.exe C:/Python27/Scripts/rst2wiki.py --wiki > twiki test.rst test.twiki > > Exiting due to error. Use "--traceback" to diagnose. > > Please report errors to <doc...@li...>. > > Include "--traceback" output, Docutils version (0.11 [repository]), > > Python version (2.7.2), your OS type & version, and the > > command line used. > > > > mm@laptop ~ > > $ /cygdrive/c/Python27/python.exe C:/Python27/Scripts/rst2wiki.py > --traceback --wiki twiki test.rst test.twiki > > Traceback (most recent call last): > > File "C:/Python27/Scripts/rst2wiki.py", line 37, in <module> > > publish_cmdline(writer=wiki.Writer(), description=description) > > File "C:\Python27\lib\site-packages\docutils\core.py", line 352, in > publish_cmdline > > config_section=config_section, enable_exit_status=enable_exit_status) > > File "C:\Python27\lib\site-packages\docutils\core.py", line 219, in > publish > > output = self.writer.write(self.document, self.destination) > > File "C:\Python27\lib\site-packages\docutils\writers\__init__.py", line > 80, in write > > self.translate() > > File "C:\Python27\lib\site-packages\docutils\writers\wiki.py", line 55, in > translate > > self.document.walkabout(visitor) > > File "C:\Python27\lib\site-packages\docutils\nodes.py", line 174, in > walkabout > > if child.walkabout(visitor): > > File "C:\Python27\lib\site-packages\docutils\nodes.py", line 166, in > walkabout > > visitor.dispatch_visit(self) > > File "C:\Python27\lib\site-packages\docutils\nodes.py", line 1882, in > dispatch_visit > > return method(node) > > File "C:\Python27\lib\site-packages\docutils\nodes.py", line 1907, in > unknown_visit > > % (self.__class__, node.__class__.__name__)) > > NotImplementedError: docutils.writers.wiki.TWikiTranslator visiting unknown > node type: transition > > > > > > If I can’t use this tool, my team and I might have to convert the RST to > wiki by hand (ugh...) or we might roll-our-own script to do most of the > heavy lifting. We would love to use the tool you’ve created though! > > > > Many thanks for your help! > > > > Mike McHugh > > DSP Engineer > > Automotive Systems Division > > Bose Corporation > > Mic...@bo... > > office: (508)-305-4531 > > cell: (970)-367-6443 > > > > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Docutils-users mailing list > Doc...@li... > https://lists.sourceforge.net/lists/listinfo/docutils-users > > Please use "Reply All" to reply to the list. > |
From: McHugh, M. <Mic...@bo...> - 2014-06-10 16:42:57
|
Hi Joshua, I am having some trouble converting some documents from RST to twiki format. I wonder if there's something obvious that I'm doing wrong... I am using Windows Python 2.7 within a Cygwin shell (although I get similar output from a "cmd" shell window). I have copied the following files as indicated rst2wiki.py ==> C:\Python27\Scripts\ wiki.py ==> C:\Python27\Lib\site-packages\docutils\writers\ I get the following output: mm@laptop ~ $ /cygdrive/c/Python27/python.exe C:/Python27/Scripts/rst2wiki.py --wiki twiki test.rst test.twiki NotImplementedError: docutils.writers.wiki.TWikiTranslator visiting unknown node type: transition Exiting due to error. Use "--traceback" to diagnose. Please report errors to <doc...@li...>. Include "--traceback" output, Docutils version (0.11 [repository]), Python version (2.7.2), your OS type & version, and the command line used. mm@laptop ~ $ /cygdrive/c/Python27/python.exe C:/Python27/Scripts/rst2wiki.py --traceback --wiki twiki test.rst test.twiki Traceback (most recent call last): File "C:/Python27/Scripts/rst2wiki.py", line 37, in <module> publish_cmdline(writer=wiki.Writer(), description=description) File "C:\Python27\lib\site-packages\docutils\core.py", line 352, in publish_cmdline config_section=config_section, enable_exit_status=enable_exit_status) File "C:\Python27\lib\site-packages\docutils\core.py", line 219, in publish output = self.writer.write(self.document, self.destination) File "C:\Python27\lib\site-packages\docutils\writers\__init__.py", line 80, in write self.translate() File "C:\Python27\lib\site-packages\docutils\writers\wiki.py", line 55, in translate self.document.walkabout(visitor) File "C:\Python27\lib\site-packages\docutils\nodes.py", line 174, in walkabout if child.walkabout(visitor): File "C:\Python27\lib\site-packages\docutils\nodes.py", line 166, in walkabout visitor.dispatch_visit(self) File "C:\Python27\lib\site-packages\docutils\nodes.py", line 1882, in dispatch_visit return method(node) File "C:\Python27\lib\site-packages\docutils\nodes.py", line 1907, in unknown_visit % (self.__class__, node.__class__.__name__)) NotImplementedError: docutils.writers.wiki.TWikiTranslator visiting unknown node type: transition If I can't use this tool, my team and I might have to convert the RST to wiki by hand (ugh...) or we might roll-our-own script to do most of the heavy lifting. We would love to use the tool you've created though! Many thanks for your help! Mike McHugh DSP Engineer Automotive Systems Division Bose Corporation Mic...@bo...<mailto:Mic...@bo...> office: (508)-305-4531 cell: (970)-367-6443 |
From: Guenter M. <mi...@us...> - 2014-06-10 15:06:20
|
On 2014-06-05, Chancy Kennedy wrote: > [-- Type: text/plain, Encoding: --] > Hello. I've made a modification to the csv-table directive to use zeroes in > the :widths: option to trigger the exclusion of those columns, e.g. ... > .. csv-table:: > :file: file.csv > :widths: 30, 35, 0, 0, 0, 0, 35 > ... would exclude columns 3 - 6 from being rendered. I'm not very familiar > with docutils. Is this something a patch would be desired for and are there > other modifications I should make for consistency across the table family > of directives? It is an interesting addition that does not stand in the way, so IMV this is worth a patch. It should be done on the parser side, so that it works for all writers. Günter |
From: Caplan, M. <Mic...@he...> - 2014-06-09 17:34:07
|
Thanks for the clarification David. I had the FAQ pointed out to me on this subject since my original email. Certainly a RTFM moment. :) Sorry about that. Appreciate your explanation. Your solution is interesting, but we only want to place selective emphasis on noted areas. Thanks! Mike ________________________________________ From: dgo...@gm... [dgo...@gm...] on behalf of David Goodger [go...@py...] Sent: Monday, June 09, 2014 1:18 PM To: Caplan, Michael Cc: doc...@li... Subject: Re: [Docutils-users] Substitution in Admonitions On Mon, Jun 9, 2014 at 9:20 AM, Caplan, Michael <Mic...@he...> wrote: > Hi, > > I hope I'm in the right place to be asking this question. I originally posted this question in the Sphinx doc user list, but I think this is a reStructuredText question specifically. > > Total newbie question. How can I do a substitution in an admonition? > > For example: > > |p| account > > .. note:: > > **Been using |p| separately and now integrating?** You're trying to do nested inline markup here, which Docutils doesn't support. This has nothing to do with admonitions. The same thing (substitution inside emphasis) won't work in any context, but the substitution *will* work if you remove the strong emphasis ("**") markup above. Instead, why not style your Note admonitions? Add boldface to your stylesheet, and drop the markup. -- David Goodger <http://python.net/~goodger> Please consider the environment before printing this email. E-mail messages may contain viruses, worms, or other malicious code. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective action against such code. Henry Schein is not liable for any loss or damage arising from this message. The information in this email is confidential and may be legally privileged. It is intended solely for the addressee(s). Access to this e-mail by anyone else is unauthorized. |
From: David G. <go...@py...> - 2014-06-09 16:18:51
|
On Mon, Jun 9, 2014 at 9:20 AM, Caplan, Michael <Mic...@he...> wrote: > Hi, > > I hope I'm in the right place to be asking this question. I originally posted this question in the Sphinx doc user list, but I think this is a reStructuredText question specifically. > > Total newbie question. How can I do a substitution in an admonition? > > For example: > > |p| account > > .. note:: > > **Been using |p| separately and now integrating?** You're trying to do nested inline markup here, which Docutils doesn't support. This has nothing to do with admonitions. The same thing (substitution inside emphasis) won't work in any context, but the substitution *will* work if you remove the strong emphasis ("**") markup above. Instead, why not style your Note admonitions? Add boldface to your stylesheet, and drop the markup. -- David Goodger <http://python.net/~goodger> |
From: Caplan, M. <Mic...@he...> - 2014-06-09 14:34:24
|
Hi, I hope I'm in the right place to be asking this question. I originally posted this question in the Sphinx doc user list, but I think this is a reStructuredText question specifically. Total newbie question. How can I do a substitution in an admonition? For example: |p| account .. note:: **Been using |p| separately and now integrating?** In my sphinx conf.py I define a replacement rule which gets appended to the rst file prior to interpretation (at least that is how I understand it): rst_epilog = '.. |p| replace:: Labnext' My first substitution in the paragraph works without fail. However the substitution in the note directive isn't applied. Any work arounds? Is this a quirk of Sphinx? Thanks, Mike Please consider the environment before printing this email. E-mail messages may contain viruses, worms, or other malicious code. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective action against such code. Henry Schein is not liable for any loss or damage arising from this message. The information in this email is confidential and may be legally privileged. It is intended solely for the addressee(s). Access to this e-mail by anyone else is unauthorized. |
From: David G. <go...@py...> - 2014-06-06 23:12:44
|
On Jun 6, 2014 5:18 PM, "Alan Bromborsky" <ab...@ve...> wrote: > > On 06/06/2014 05:52 PM, David Goodger wrote: >> >> On Fri, Jun 6, 2014 at 9:40 AM, Alan Bromborsky <ab...@ve...> wrote: >>> >>> I wish to link to a given page in a pdf document from the html document >>> generated by rst2html: >>> >>> The following works (in the rst file) - :download:`GA >>> <../LaTeX_docs/GA.pdf>` >>> to open GA.pdf at the beginning. >>> The following does not work - :download:`GA <../LaTeX_docs/GA.pdf#page=12>` >>> to open GA.pdf at page 12. However if I use - :download:`GA >>> <../LaTeX_docs/GA.pdf>` >>> in the rst file and then change - _downloads/GA.pdf >>> in the html file to - _downloads/GA.pdf#page=12 >>> then the link does open on page 12. Do you know of anyway to code this >>> directly in the rst file? >> >> What does ":download:`URL`" do? I've never seen that before. >> >> Putting "#page=12" into the RST source ought to work fine, and it >> would if it were a simple link (without the :download: part, e.g. just >> "`GA <../LaTeX_docs/GA.pdf#page=12>`_". This produces the following >> HTML: >> >> <a class="reference external" href="../LaTeX_docs/GA.pdf#page=12">GA</a> >> >> Please show us the HTML output you get, when you include that parameter. >> > > Note that my rst file is processed with python-sphinx. I can't help you with Sphinx-specific markup ("download"), sorry. Perhaps ask on the Sphinx list. > The rst text and the resulting html output is shown below > > rst html > > `GA <../LaTeX_docs/GA.pdf>` Note that you need a trailing underscore for this to work. See my example above. DG > <cite>GA <../LaTeX_docs/GA.pdf></cite> > :download:`GA <../LaTeX_docs/GA.pdf>` <a class="reference download internal" href="_downloads/GA.pdf"><tt class="xref download docutils literal"><span class="pre">GA</span></div>:download:`GA <../LaTeX_docs/GA.pdf#page=12>` <tt class="xref download docutils literal"><span class="pre">GA</span> |
From: Юрий К. <ur...@ur...> - 2014-06-06 21:55:13
|
Alan Bromborsky wrote: > I wish to link to a given page in a pdf document from the html document > generated by rst2html: > > The following does not work - :download:`GA > <../LaTeX_docs/GA.pdf#page=12>` to open GA.pdf at page 12. What exactly do you get in HTML in both cases (working and not working)? -- Yury G. Kudryashov mailto: ur...@ur... () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments |
From: David G. <go...@py...> - 2014-06-06 21:53:29
|
On Fri, Jun 6, 2014 at 9:40 AM, Alan Bromborsky <ab...@ve...> wrote: > I wish to link to a given page in a pdf document from the html document > generated by rst2html: > > The following works (in the rst file) - :download:`GA > <../LaTeX_docs/GA.pdf>` > to open GA.pdf at the beginning. > The following does not work - :download:`GA <../LaTeX_docs/GA.pdf#page=12>` > to open GA.pdf at page 12. However if I use - :download:`GA > <../LaTeX_docs/GA.pdf>` > in the rst file and then change - _downloads/GA.pdf > in the html file to - _downloads/GA.pdf#page=12 > then the link does open on page 12. Do you know of anyway to code this > directly in the rst file? What does ":download:`URL`" do? I've never seen that before. Putting "#page=12" into the RST source ought to work fine, and it would if it were a simple link (without the :download: part, e.g. just "`GA <../LaTeX_docs/GA.pdf#page=12>`_". This produces the following HTML: <a class="reference external" href="../LaTeX_docs/GA.pdf#page=12">GA</a> Please show us the HTML output you get, when you include that parameter. -- David Goodger <http://python.net/~goodger> |
From: Alan B. <ab...@ve...> - 2014-06-06 14:40:41
|
I wish to link to a given page in a pdf document from the html document generated by rst2html: The following works (in the rst file) - :download:`GA <../LaTeX_docs/GA.pdf>` to open GA.pdf at the beginning. The following does not work - :download:`GA <../LaTeX_docs/GA.pdf#page=12>` to open GA.pdf at page 12. However if I use - :download:`GA <../LaTeX_docs/GA.pdf>` in the rst file and then change - _downloads/GA.pdf in the html file to - _downloads/GA.pdf#page=12 then the link does open on page 12. Do you know of anyway to code this directly in the rst file? |
From: Chancy K. <cha...@gm...> - 2014-06-05 17:51:44
|
Hello. I've made a modification to the csv-table directive to use zeroes in the :widths: option to trigger the exclusion of those columns, e.g. ... .. csv-table:: :file: file.csv :widths: 30, 35, 0, 0, 0, 0, 35 ... would exclude columns 3 - 6 from being rendered. I'm not very familiar with docutils. Is this something a patch would be desired for and are there other modifications I should make for consistency across the table family of directives? Also, I'm not subscribed to the mailing list. Thanks, Chancy |