You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
(5) |
May
(27) |
Jun
(22) |
Jul
(72) |
Aug
(82) |
Sep
(86) |
Oct
(138) |
Nov
(100) |
Dec
(62) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(122) |
Feb
(147) |
Mar
(92) |
Apr
(82) |
May
(101) |
Jun
(153) |
Jul
(37) |
Aug
(34) |
Sep
(46) |
Oct
(46) |
Nov
(6) |
Dec
(38) |
2004 |
Jan
(64) |
Feb
(81) |
Mar
(36) |
Apr
(194) |
May
(329) |
Jun
(272) |
Jul
(68) |
Aug
(74) |
Sep
(150) |
Oct
(57) |
Nov
(62) |
Dec
(63) |
2005 |
Jan
(78) |
Feb
(30) |
Mar
(137) |
Apr
(78) |
May
(54) |
Jun
(122) |
Jul
(72) |
Aug
(110) |
Sep
(80) |
Oct
(75) |
Nov
(125) |
Dec
(79) |
2006 |
Jan
(100) |
Feb
(15) |
Mar
(41) |
Apr
(67) |
May
(30) |
Jun
(11) |
Jul
(14) |
Aug
(22) |
Sep
(20) |
Oct
(14) |
Nov
(11) |
Dec
(15) |
2007 |
Jan
(17) |
Feb
(16) |
Mar
(35) |
Apr
(21) |
May
(33) |
Jun
(50) |
Jul
(12) |
Aug
(7) |
Sep
(2) |
Oct
(6) |
Nov
(5) |
Dec
(2) |
2008 |
Jan
(14) |
Feb
(20) |
Mar
(35) |
Apr
(9) |
May
(57) |
Jun
(21) |
Jul
(42) |
Aug
(4) |
Sep
(13) |
Oct
(76) |
Nov
(40) |
Dec
(55) |
2009 |
Jan
(26) |
Feb
(15) |
Mar
(3) |
Apr
(67) |
May
(32) |
Jun
(39) |
Jul
(59) |
Aug
(31) |
Sep
(59) |
Oct
(64) |
Nov
(21) |
Dec
(10) |
2010 |
Jan
(21) |
Feb
(3) |
Mar
(116) |
Apr
(33) |
May
(9) |
Jun
(28) |
Jul
(21) |
Aug
(23) |
Sep
(146) |
Oct
(70) |
Nov
(31) |
Dec
(57) |
2011 |
Jan
(33) |
Feb
(22) |
Mar
(11) |
Apr
(21) |
May
(51) |
Jun
(47) |
Jul
(35) |
Aug
(26) |
Sep
(25) |
Oct
(34) |
Nov
(61) |
Dec
(51) |
2012 |
Jan
(75) |
Feb
(31) |
Mar
(26) |
Apr
(16) |
May
(24) |
Jun
(24) |
Jul
(31) |
Aug
(46) |
Sep
(36) |
Oct
(28) |
Nov
(37) |
Dec
(21) |
2013 |
Jan
(16) |
Feb
(56) |
Mar
(31) |
Apr
(44) |
May
(45) |
Jun
(29) |
Jul
(38) |
Aug
(18) |
Sep
(12) |
Oct
(16) |
Nov
(21) |
Dec
(11) |
2014 |
Jan
(13) |
Feb
(14) |
Mar
(28) |
Apr
(7) |
May
(72) |
Jun
(33) |
Jul
(21) |
Aug
(1) |
Sep
(6) |
Oct
(14) |
Nov
(18) |
Dec
(22) |
2015 |
Jan
(23) |
Feb
(108) |
Mar
(76) |
Apr
(114) |
May
(60) |
Jun
(9) |
Jul
(8) |
Aug
(9) |
Sep
(42) |
Oct
(9) |
Nov
|
Dec
(7) |
2016 |
Jan
(6) |
Feb
(15) |
Mar
(7) |
Apr
|
May
(33) |
Jun
(3) |
Jul
(19) |
Aug
(12) |
Sep
(6) |
Oct
(16) |
Nov
(17) |
Dec
(125) |
2017 |
Jan
(66) |
Feb
(98) |
Mar
(29) |
Apr
(32) |
May
(63) |
Jun
(98) |
Jul
(26) |
Aug
(33) |
Sep
(19) |
Oct
(77) |
Nov
(31) |
Dec
(27) |
2018 |
Jan
(32) |
Feb
(11) |
Mar
(5) |
Apr
(12) |
May
(4) |
Jun
(9) |
Jul
(9) |
Aug
(13) |
Sep
(11) |
Oct
(6) |
Nov
(23) |
Dec
(2) |
2019 |
Jan
(26) |
Feb
(12) |
Mar
(20) |
Apr
(18) |
May
(7) |
Jun
(22) |
Jul
(81) |
Aug
(129) |
Sep
(32) |
Oct
(18) |
Nov
(11) |
Dec
(44) |
2020 |
Jan
(19) |
Feb
(10) |
Mar
(38) |
Apr
(4) |
May
(9) |
Jun
(15) |
Jul
(29) |
Aug
(79) |
Sep
(12) |
Oct
(22) |
Nov
(10) |
Dec
(37) |
2021 |
Jan
(16) |
Feb
(14) |
Mar
(20) |
Apr
(100) |
May
(21) |
Jun
(19) |
Jul
(13) |
Aug
(13) |
Sep
(37) |
Oct
(112) |
Nov
(64) |
Dec
(22) |
2022 |
Jan
(209) |
Feb
(38) |
Mar
(11) |
Apr
(10) |
May
(55) |
Jun
(104) |
Jul
(35) |
Aug
(10) |
Sep
(21) |
Oct
(21) |
Nov
(50) |
Dec
(12) |
2023 |
Jan
(6) |
Feb
|
Mar
(3) |
Apr
(41) |
May
(48) |
Jun
(9) |
Jul
(6) |
Aug
(25) |
Sep
(3) |
Oct
(22) |
Nov
(56) |
Dec
(12) |
2024 |
Jan
(5) |
Feb
(5) |
Mar
(38) |
Apr
(62) |
May
(12) |
Jun
(10) |
Jul
(3) |
Aug
(59) |
Sep
(2) |
Oct
(36) |
Nov
(14) |
Dec
(3) |
2025 |
Jan
(5) |
Feb
(19) |
Mar
(7) |
Apr
(65) |
May
(11) |
Jun
(13) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: engelbert g. <gr...@us...> - 2025-07-01 17:57:21
|
could you test with the prerelease make a env, install latest release candidate ~~~ mkdir testdir cd testdir python3 -m venv . . bin/activate pip install --pre docutils ~~~ run the test `rst2html dbl-par.rst` i do not get duplication --- **[bugs:#505] Curious repeated paragraph** **Status:** open **Created:** Thu Jun 26, 2025 06:38 PM UTC by Harmen **Last Updated:** Sat Jun 28, 2025 09:51 AM UTC **Owner:** nobody When the following is parsed, the line that says "this is repeated" appears **twice** as a paragraph. ``` ========= section 1 ========= --- abc --- this is repeated ========= section 2 ========= ``` It is fixed by: 1. Adding an additional newline after the sentence 2. Using 4 hyphens `----` instead of 3 `---` above and below `abc` 3. Removing the upper `---` Pandoc renders this as expected (at least by me). --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: engelbert g. <gr...@us...> - 2025-06-30 14:22:24
|
you are completely right, i just happened to never have used upperlines but now i know how put chapter titles please bear with me, if this is not fixed in 0.22 cheers and many thanks On Sat, 28 Jun 2025 at 11:51, Harmen <ha...@us...> wrote: > @grubert <https://sourceforge.net/u/grubert/profile/> actually that is > not documented: > https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html > > I think the example should be fine according to that specification. > > In any case, it's a bug to have the paragraph repeated. > ------------------------------ > > *[bugs:#505] <https://sourceforge.net/p/docutils/bugs/505/> Curious > repeated paragraph* > > *Status:* open > *Created:* Thu Jun 26, 2025 06:38 PM UTC by Harmen > *Last Updated:* Sat Jun 28, 2025 09:29 AM UTC > *Owner:* nobody > > When the following is parsed, the line that says "this is repeated" > appears *twice* as a paragraph. > > ========= > section 1 > ========= > > --- > abc > --- > > this is repeated > > ========= > section 2 > ========= > > It is fixed by: > > 1. Adding an additional newline after the sentence > 2. Using 4 hyphens ---- instead of 3 --- above and below abc > 3. Removing the upper --- > > Pandoc renders this as expected (at least by me). > ------------------------------ > > Sent from sourceforge.net because you indicated interest in > https://sourceforge.net/p/docutils/bugs/505/ > > To unsubscribe from further messages, please visit > https://sourceforge.net/auth/subscriptions/ > --- **[bugs:#505] Curious repeated paragraph** **Status:** open **Created:** Thu Jun 26, 2025 06:38 PM UTC by Harmen **Last Updated:** Sat Jun 28, 2025 09:51 AM UTC **Owner:** nobody When the following is parsed, the line that says "this is repeated" appears **twice** as a paragraph. ``` ========= section 1 ========= --- abc --- this is repeated ========= section 2 ========= ``` It is fixed by: 1. Adding an additional newline after the sentence 2. Using 4 hyphens `----` instead of 3 `---` above and below `abc` 3. Removing the upper `---` Pandoc renders this as expected (at least by me). --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: engelbert g. <gr...@us...> - 2025-06-28 06:10:22
|
sections do not have overlines (upper) only the document title --- **[bugs:#505] Curious repeated paragraph** **Status:** open **Created:** Thu Jun 26, 2025 06:38 PM UTC by Harmen **Last Updated:** Thu Jun 26, 2025 06:38 PM UTC **Owner:** nobody When the following is parsed, the line that says "this is repeated" appears **twice** as a paragraph. ``` ========= section 1 ========= --- abc --- this is repeated ========= section 2 ========= ``` It is fixed by: 1. Adding an additional newline after the sentence 2. Using 4 hyphens `----` instead of 3 `---` above and below `abc` 3. Removing the upper `---` Pandoc renders this as expected (at least by me). --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: engelbert g. <eng...@gm...> - 2025-06-24 07:13:07
|
Hei everyone, only one change: Don't report an error for duplicate targets with identical refname all the best e |
From: engelbert g. <eng...@gm...> - 2025-06-17 13:15:36
|
Hei everyone, today june 17th rc4 is out. the final 0.22 is scheduled for end of july, start of august. cheers e |
From: engelbert g. <eng...@gm...> - 2025-06-17 10:56:31
|
Hei everyone, next pre-release, This release often works in clarifying things, thanks to all the testers and many thanks to Günter for the work. Changes that should be run through pre-release * Drop the "name" option of the "target-notes" directive. (Report an error instead of silently ignoring the value.) * New alias "rst-class" for the "class" directive to improve the compatibility with Sphinx. * "Downgrade" targets generated from hyperlink references with embedded URI or alias from explicit to implicit (i.e. similar to the targets for sections, see implicit hyperlink targets for details). thanks for your patience and help e |
From: Günter M. <mi...@us...> - 2025-06-16 13:02:23
|
- **status**: open-fixed --> open --- **[bugs:#502] Duplicate target not always recognized.** **Status:** open **Created:** Tue Jun 03, 2025 09:33 AM UTC by Günter Milde **Last Updated:** Mon Jun 16, 2025 01:02 PM UTC **Owner:** nobody Hyperlinks with embedded alias generate both, a `<reference>` and a `<target>`. This allows simple references to the target: ~~~ See `here <example.html>`_. As we have shown here_, ... ~~~ However, it may lead to duplicates: ~~~ _`Here` is an explicit inline target. See `here <example.html>`_. As we have shown here_, ... ~~~ The second target gives a WARNING `Duplicate explicit target name: "here".` Using the reference name results in an ERROR `Duplicate target name, cannot be used as a unique reference: "here".` However (in versions up to 0.22.rc2), the duplicate target is ignored in case of **embedded internal** targets: ~~~ _`Here` is an explicit inline target. See `here <elsewhere_>`_. As we have shown here_, ... The target is _`elsewhere`. ~~~ There is no WARNING or ERROR and both references link to "elsewhere". This is fixed in [r10151]. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Günter M. <mi...@us...> - 2025-06-16 13:02:10
|
It seems, that up to now many users did not know that ````link text <target>`_``` creates a <target> with the reference name "link text". The Sphinx rST primer did start with ~~~rst Use ```Link text <https://domain.invalid/>`_`` for inline web links. ~~~ without mentioning that this *named hyperlink reference with embedded URI* also generates a target. The missing WARNING for *named hyperlink references with embedded alias* did contribute to the confusion. As a result, even the [Docutils Directives](https://docutils.sourceforge.io/docs/ref/rst/directives.html) documentation shows warnings after the fix in [r10151]. In order to avoid breaking lots of existing documents, *named hyperlink references with embedded URI or alias* should not be interpreted as an explicit intention to create a target. Rather, like section titles, the reference name should be treated as [**implicit** hyperlink targets]( https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#implicit-hyperlink-targets). --- **[bugs:#502] Duplicate target not always recognized.** **Status:** open-fixed **Created:** Tue Jun 03, 2025 09:33 AM UTC by Günter Milde **Last Updated:** Tue Jun 03, 2025 03:33 PM UTC **Owner:** nobody Hyperlinks with embedded alias generate both, a `<reference>` and a `<target>`. This allows simple references to the target: ~~~ See `here <example.html>`_. As we have shown here_, ... ~~~ However, it may lead to duplicates: ~~~ _`Here` is an explicit inline target. See `here <example.html>`_. As we have shown here_, ... ~~~ The second target gives a WARNING `Duplicate explicit target name: "here".` Using the reference name results in an ERROR `Duplicate target name, cannot be used as a unique reference: "here".` However (in versions up to 0.22.rc2), the duplicate target is ignored in case of **embedded internal** targets: ~~~ _`Here` is an explicit inline target. See `here <elsewhere_>`_. As we have shown here_, ... The target is _`elsewhere`. ~~~ There is no WARNING or ERROR and both references link to "elsewhere". This is fixed in [r10151]. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Günter M. <mi...@us...> - 2025-06-11 14:37:23
|
Thank you for the report. Note, that Docutils does report the line in the table for "simple" tables: ~~~ ======================== ================= Standard Code Message(s) ======================== ================= M1, indicator undefined Illegal reference M2, Invalid combination None ======================== ================= ~~~ Compiling with `docutils` reports ~~~ /tmp/foo.rst:4: (ERROR/3) Malformed table. Text in column margin in table line 4. ... ~~~ --- **[bugs:#504] errors for malformed tables do not indicate what the error is** **Status:** open **Created:** Thu Jun 05, 2025 09:04 PM UTC by Jynn Nelson **Last Updated:** Thu Jun 05, 2025 09:04 PM UTC **Owner:** nobody **Attachments:** - [table.rst](https://sourceforge.net/p/docutils/bugs/504/attachment/table.rst) (1.1 kB; application/octet-stream) The error messages for malformed tables are quite long and do not indicate where the error occurred. I expect docutils to point at a single line of code, and say why it was malformed. Instead it points at the whole table and just says "malformed table". ~~~ $ grep PRETTY /etc/os-release PRETTY_NAME="Pop!_OS 22.04 LTS" $ python -V Python 3.10.12 $ docutils -V docutils (Docutils 0.21.2, Python 3.10.12, on linux) $ docutils --traceback table.rst >/dev/null table.rst:5: (ERROR/3) Malformed table. +-------------------------+-------------------+ | Standard Code | Message(s) | +=========================+===================+ | M1, indicator undefined | Illegal reference | +-------------------------+-------------------+ | M1, indicator undefined | Illegal reference | +-------------------------+-------------------+ | M1, indicator undefined | Illegal reference | +-------------------------+-------------------+ | M1, indicator undefined | Illegal reference | +-------------------------+-------------------+ | M1, indicator undefined | Illegal reference | +-------------------------+-------------------+ | M1, indicator undefined | Illegal reference | +-------------------------+-------------------+ | M1, indicator undefined | Illegal reference | +-------------------------+-------------------+ | M1, indicator undefined | Illegal reference | +-------------------------+-------------------+ | M2, Invalid combination | None | +-------------------------+-------------------+ ~~~ Note that docutils *does* have the information to report this bug, because I can see it in a debugger. It simply doesn't include that info in the error. ~~~ $ python -m pdb $(which docutils) --traceback table.rst > /home/jyn/.local/bin/docutils(3)<module>() -> import re (Pdb) break docutils/parsers/rst/states.py:1787 Breakpoint 1 at /home/jyn/.local/lib/python3.10/site-packages/docutils/parsers/rst/states.py:1787 (Pdb) c > /home/jyn/.local/lib/python3.10/site-packages/docutils/parsers/rst/states.py(1787)malformed_table() -> message = 'Malformed table.' (Pdb) up > /home/jyn/.local/lib/python3.10/site-packages/docutils/parsers/rst/states.py(1737)isolate_grid_table() -> messages.extend(self.malformed_table(block)) (Pdb) list 1732 else: 1733 messages.extend(self.malformed_table(block)) 1734 return [], messages, blank_finish 1735 for i in range(len(block)): # check right edge 1736 if len(block[i]) != width or block[i][-1] not in '+|': 1737 -> messages.extend(self.malformed_table(block)) 1738 return [], messages, blank_finish 1739 return block, messages, blank_finish 1740 1741 def isolate_simple_table(self): 1742 start = self.state_machine.line_offset (Pdb) p block[i] '| Standard Code | Message(s) |' (Pdb) p width 47 (Pdb) p len(block[i]) 46 ~~~ --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: engelbert g. <eng...@gm...> - 2025-06-10 20:36:37
|
Hei minimal changes and fixes manpage writer no longer drops the text of internal targets 0.22 in one week ... if ... :-) cheers and thanks to günter e |
From: Günter M. <mi...@us...> - 2025-06-04 16:34:22
|
--- **[bugs:#503] LaTeX writer fails to generate "labels" for some elements with "ids".** **Status:** open **Created:** Wed Jun 04, 2025 04:34 PM UTC by Günter Milde **Last Updated:** Wed Jun 04, 2025 04:34 PM UTC **Owner:** nobody Most doctree elements (nodes) accept the "ids" attribute that can be used as end-point for internal cross references. In LaTeX, "ids" are represented as "labels". This is only implemented for a small subset of elements. For example the internal hyperlink in ~~~ .. note:: :name: my-note This is an admonition with ID Link to my-note_. ~~~ does not work because there is no `\label{my-note}` in the LaTeX output. See also [Sphinx issue #13609](https://github.com/sphinx-doc/sphinx/issues/13609#issuecomment-2937289148). --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Günter M. <mi...@us...> - 2025-06-03 15:33:53
|
- Description has changed: Diff: ~~~~ --- old +++ new @@ -26,6 +26,6 @@ The target is _`elsewhere`. ~~~ -There no WARNING or ERROR and both references link to "elsewhere". +There is no WARNING or ERROR and both references link to "elsewhere". This is fixed in [r10151]. ~~~~ --- **[bugs:#502] Duplicate target not always recognized.** **Status:** open-fixed **Created:** Tue Jun 03, 2025 09:33 AM UTC by Günter Milde **Last Updated:** Tue Jun 03, 2025 09:33 AM UTC **Owner:** nobody Hyperlinks with embedded alias generate both, a `<reference>` and a `<target>`. This allows simple references to the target: ~~~ See `here <example.html>`_. As we have shown here_, ... ~~~ However, it may lead to duplicates: ~~~ _`Here` is an explicit inline target. See `here <example.html>`_. As we have shown here_, ... ~~~ The second target gives a WARNING `Duplicate explicit target name: "here".` Using the reference name results in an ERROR `Duplicate target name, cannot be used as a unique reference: "here".` However (in versions up to 0.22.rc2), the duplicate target is ignored in case of **embedded internal** targets: ~~~ _`Here` is an explicit inline target. See `here <elsewhere_>`_. As we have shown here_, ... The target is _`elsewhere`. ~~~ There is no WARNING or ERROR and both references link to "elsewhere". This is fixed in [r10151]. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Günter M. <mi...@us...> - 2025-06-03 09:33:27
|
--- **[bugs:#502] Duplicate target not always recognized.** **Status:** open-fixed **Created:** Tue Jun 03, 2025 09:33 AM UTC by Günter Milde **Last Updated:** Tue Jun 03, 2025 09:33 AM UTC **Owner:** nobody Hyperlinks with embedded alias generate both, a `<reference>` and a `<target>`. This allows simple references to the target: ~~~ See `here <example.html>`_. As we have shown here_, ... ~~~ However, it may lead to duplicates: ~~~ _`Here` is an explicit inline target. See `here <example.html>`_. As we have shown here_, ... ~~~ The second target gives a WARNING `Duplicate explicit target name: "here".` Using the reference name results in an ERROR `Duplicate target name, cannot be used as a unique reference: "here".` However (in versions up to 0.22.rc2), the duplicate target is ignored in case of **embedded internal** targets: ~~~ _`Here` is an explicit inline target. See `here <elsewhere_>`_. As we have shown here_, ... The target is _`elsewhere`. ~~~ There no WARNING or ERROR and both references link to "elsewhere". This is fixed in [r10151]. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Günter M. <mi...@us...> - 2025-06-03 08:53:35
|
- **status**: open --> open-fixed - **Comment**: This is fixed as part of a general update to the page in [r10148]. Thank you for reporting. --- **[bugs:#501] Typo in "Docutils Links" page** **Status:** open-fixed **Created:** Sat May 31, 2025 11:20 AM UTC by Edward K. Ream **Last Updated:** Sat May 31, 2025 11:20 AM UTC **Owner:** nobody The [Docutils Links](https://docutils.sourceforge.io/docs/user/links.html) page contains a typo concerning Leo: Please change: It can be used as IDE for **literal** programming, to It can be used as IDE for **literate** programming, Thanks. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: engelbert g. <eng...@gm...> - 2025-05-22 19:46:36
|
Hei everyone, only a few changes, but necessary ones to remedy 3rd party problems please try, test next release day for 0.22 on my schedule is tuesday june 10. all the best e * docutils/parsers/rst/directives/misc.py - Pass default settings to custom parser for included file. * docutils/parsers/rst/states.py - Remove the list`states.RSTStateMachine.memo.section_parents` (introduced in Docutils 0.22rc1) that broke 3rd-party applications setting up a "mock memo". - Use `types.SimpleNamespace` instead of a local definition for the auxilliary class `states.Struct`. * docutils/writers/_html_base.py - Fix error when determining the document metadata title from the source path and the internal `source` attribute is None. |
From: Günter M. <mi...@us...> - 2025-05-21 07:55:42
|
Sphinx uses parentheses in the [:abbr: role](https://sphinx--13576.org.readthedocs.build/en/13576/usage/restructuredtext/roles.html#role-abbr), for example: ~~~ :abbr:`LIFO (last-in, first-out)` ~~~ +1 looks "natural" in source form - 1 used as generic syntax, this would require escaping all opening parentheses in role content. --- **[feature-requests:#68] Adding syntax for role parameters** **Status:** open **Group:** Default **Created:** Fri Jan 31, 2020 11:28 PM UTC by adam **Last Updated:** Tue Dec 12, 2023 06:25 PM UTC **Owner:** nobody Hello Docutils team, Sometimes I would like to pass options to role functions for adding domain-specific metadata. For example, For citation page numbers: ~~~rst As discussed in :cite:[p.99]`knuth1968`, the implementation ... ~~~ In a cookbook: ~~~rst If you like, add some :liquid-ingredient:[20ml, spicyness=7]`Tabasco sauce`. ~~~ As discussed in [this Docutils mailing-list thread](https://sourceforge.net/p/docutils/mailman/message/34894112/), AsciiDoc [uses a syntax](https://asciidoctor.org/docs/asciidoc-syntax-quick-reference/#images) like this: ~~~ Click image:icons/play.png[Play, title="Play"] to get the party started. ~~~ I like the idea of passing positional and named options in brackets. Is there a possibility of Docutils supporting this feature? --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/feature-requests/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/feature-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Günter M. <mi...@us...> - 2025-05-20 15:09:58
|
- **status**: open --> open-fixed - **Comment**: Thanks for the fast feedback. The patch is now in the repository [r10135]. --- **[bugs:#500] Html5WriterPublishPartsTestCase.test_publish skips too much when with_pygments is False** **Status:** open-fixed **Created:** Mon May 19, 2025 10:15 AM UTC by Michał Górny **Last Updated:** Tue May 20, 2025 12:24 PM UTC **Owner:** nobody While debugging something else, I've noticed that the `Html5WriterPublishPartsTestCase.test_publish()` case contains the following bit: ``` for name, (settings_overrides, cases) in totest.items(): if name == 'syntax_highlight' and not with_pygments: self.skipTest('syntax highlight requires pygments') ``` This means that if `with_pygments` is `False`, all the remaining cases from `totest` are skipped. If I replace it with: ``` for name, (settings_overrides, cases) in totest.items(): if name == 'syntax_highlight' and not with_pygments: continue ``` I see some test regressions too. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: engelbert g. <eng...@gm...> - 2025-05-20 12:56:09
|
Hei everyone, the plan changed 0.22rc2 is for thursday may, 22 0.22 if nothing crops up tuesday june, 10th all the best e |
From: Michał G. <mgo...@us...> - 2025-05-20 12:24:16
|
I can confirm that the patch makes tests pass for me — and it definitely looks more reliable in the long run. Thanks! --- **[bugs:#500] Html5WriterPublishPartsTestCase.test_publish skips too much when with_pygments is False** **Status:** open **Created:** Mon May 19, 2025 10:15 AM UTC by Michał Górny **Last Updated:** Tue May 20, 2025 11:53 AM UTC **Owner:** nobody While debugging something else, I've noticed that the `Html5WriterPublishPartsTestCase.test_publish()` case contains the following bit: ``` for name, (settings_overrides, cases) in totest.items(): if name == 'syntax_highlight' and not with_pygments: self.skipTest('syntax highlight requires pygments') ``` This means that if `with_pygments` is `False`, all the remaining cases from `totest` are skipped. If I replace it with: ``` for name, (settings_overrides, cases) in totest.items(): if name == 'syntax_highlight' and not with_pygments: continue ``` I see some test regressions too. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Günter M. <mi...@us...> - 2025-05-20 11:53:57
|
- **status**: open-fixed --> open - **Comment**: PIL error outputs seem to be hard to predict. I got absolute paths with Python 3.9.2 / Pillow 9.1.1 and Python 3.11.2 / Pillow 9.4.0. It also depends on whether `Image.open()` is passed a `str` or a `Path`. Could you try the following patch? (It works here with the versions above.) ~~~ diff --git a/docutils/test/test_writers/test_html5_polyglot.py b/docutils/test/test_writers/test_html5_polyglot.py index f31277a36..b2fc3cc23 100644 --- a/docutils/test/test_writers/test_html5_polyglot.py +++ b/docutils/test/test_writers/test_html5_polyglot.py @@ -41,13 +41,11 @@ if PIL: REQUIRES_PIL = '' ONLY_LOCAL = 'Cannot get file path corresponding to https://dummy.png.' - DUMMY_PNG_NOT_FOUND = "[Errno 2] No such file or directory: 'dummy.png'" - # Pillow reports the absolute path since version 10.3.0 (cf. [bugs: 485]) - # Backported to version 9.1 (or does it depend on the Python version)? - pil_version = tuple(int(i) for i in PIL.__version__.split('.')) - if pil_version >= (10, 3) or pil_version[0] == 9 and pil_version[1] >= 1: - DUMMY_PNG_NOT_FOUND = ("[Errno 2] No such file or directory: '%s'" - % Path('dummy.png').resolve()) + # Pillow versions vary in their error output (cf. bugs: #485 and #500) + try: + PIL.Image.open(Path('dummy.png')) + except OSError as err: + DUMMY_PNG_NOT_FOUND = str(err) HEIGHT_ATTR = 'height="32" ' WIDTH_ATTR = 'width="32" ' NO_PIL_SYSTEM_MESSAGE = '' @@ -90,7 +88,7 @@ def test_publish(self): **settings_overrides, } ) - self.assertEqual(case_expected, parts['body']) + self.assertEqual(case_expected, parts[ 'body']) totest = {} # expected samples contain only the "body" part of the HMTL output ~~~ --- **[bugs:#500] Html5WriterPublishPartsTestCase.test_publish skips too much when with_pygments is False** **Status:** open **Created:** Mon May 19, 2025 10:15 AM UTC by Michał Górny **Last Updated:** Tue May 20, 2025 12:52 AM UTC **Owner:** nobody While debugging something else, I've noticed that the `Html5WriterPublishPartsTestCase.test_publish()` case contains the following bit: ``` for name, (settings_overrides, cases) in totest.items(): if name == 'syntax_highlight' and not with_pygments: self.skipTest('syntax highlight requires pygments') ``` This means that if `with_pygments` is `False`, all the remaining cases from `totest` are skipped. If I replace it with: ``` for name, (settings_overrides, cases) in totest.items(): if name == 'syntax_highlight' and not with_pygments: continue ``` I see some test regressions too. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Michał G. <mgo...@us...> - 2025-05-20 00:52:48
|
Thanks. However, the original issue that I tried to debug is: for me Pillow 11.2.1 produces relative paths, i.e. now I'm seeing: ``` ====================================================================== FAIL: test_publish (test_writers.test_html5_polyglot.Html5WriterPublishPartsTestCase.test_publish) (id="totest['system_messages-PIL'][0]") ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/docutils/docutils/test/test_writers/test_html5_polyglot.py", line 93, in test_publish self.assertEqual(case_expected, parts['body']) AssertionError: '<img[305 chars]y: \'/tmp/docutils/docutils/test/dummy.png\'</[280 chars]e>\n' != '<img[305 chars]y: \'dummy.png\'</p>\n</aside>\n<aside class="[252 chars]e>\n' <img alt="dummy.png" src="dummy.png" /> <aside class="system-message"> <p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal"><string></span>, line 1)</p> <p>Cannot scale image! Could not get size from "dummy.png": - [Errno 2] No such file or directory: '/tmp/docutils/docutils/test/dummy.png'</p> ? ---------------------------- + [Errno 2] No such file or directory: 'dummy.png'</p> </aside> <aside class="system-message"> <p class="system-message-title">System Message: ERROR/3 (<span class="docutils literal"><string></span>, line 1)</p> <p>Cannot embed image "dummy.png": [Errno 2] No such file or directory: 'dummy.png'</p> </aside> ---------------------------------------------------------------------- Ran 2285 tests in 4.599s FAILED (failures=1, skipped=4) ``` Do you want me to open a separate bug for that? I can reproduce with Python 3.11.12, 3.12.10, 3.13.3. --- **[bugs:#500] Html5WriterPublishPartsTestCase.test_publish skips too much when with_pygments is False** **Status:** open-fixed **Created:** Mon May 19, 2025 10:15 AM UTC by Michał Górny **Last Updated:** Mon May 19, 2025 09:14 PM UTC **Owner:** nobody While debugging something else, I've noticed that the `Html5WriterPublishPartsTestCase.test_publish()` case contains the following bit: ``` for name, (settings_overrides, cases) in totest.items(): if name == 'syntax_highlight' and not with_pygments: self.skipTest('syntax highlight requires pygments') ``` This means that if `with_pygments` is `False`, all the remaining cases from `totest` are skipped. If I replace it with: ``` for name, (settings_overrides, cases) in totest.items(): if name == 'syntax_highlight' and not with_pygments: continue ``` I see some test regressions too. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Günter M. <mi...@us...> - 2025-05-19 21:14:35
|
- **status**: open --> open-fixed - **Comment**: Fixed in [r10134]. Thank you for the report. --- **[bugs:#500] Html5WriterPublishPartsTestCase.test_publish skips too much when with_pygments is False** **Status:** open-fixed **Created:** Mon May 19, 2025 10:15 AM UTC by Michał Górny **Last Updated:** Mon May 19, 2025 10:15 AM UTC **Owner:** nobody While debugging something else, I've noticed that the `Html5WriterPublishPartsTestCase.test_publish()` case contains the following bit: ``` for name, (settings_overrides, cases) in totest.items(): if name == 'syntax_highlight' and not with_pygments: self.skipTest('syntax highlight requires pygments') ``` This means that if `with_pygments` is `False`, all the remaining cases from `totest` are skipped. If I replace it with: ``` for name, (settings_overrides, cases) in totest.items(): if name == 'syntax_highlight' and not with_pygments: continue ``` I see some test regressions too. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Michał G. <mgo...@us...> - 2025-05-19 10:15:27
|
--- **[bugs:#500] Html5WriterPublishPartsTestCase.test_publish skips too much when with_pygments is False** **Status:** open **Created:** Mon May 19, 2025 10:15 AM UTC by Michał Górny **Last Updated:** Mon May 19, 2025 10:15 AM UTC **Owner:** nobody While debugging something else, I've noticed that the `Html5WriterPublishPartsTestCase.test_publish()` case contains the following bit: ``` for name, (settings_overrides, cases) in totest.items(): if name == 'syntax_highlight' and not with_pygments: self.skipTest('syntax highlight requires pygments') ``` This means that if `with_pygments` is `False`, all the remaining cases from `totest` are skipped. If I replace it with: ``` for name, (settings_overrides, cases) in totest.items(): if name == 'syntax_highlight' and not with_pygments: continue ``` I see some test regressions too. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Guenter M. <mi...@us...> - 2025-05-10 18:29:00
|
On 2025-05-06, engelbert gruber wrote: > hei everyone > Subject: Re: release 0.22rc1 is out > please try and test. Thank you for the release. > ... for details see https://docutils.sourceforge.io/HISTORY.html ... and, as usual for the summary of important and backwards incompatible changes the RELEASE-NOTES: https://docutils.sourceforge.io/RELEASE-NOTES.html#release-0-22rc1-2025-05-06 I have some fixups in preparation. There is a current problem in Sphinx compatibility tests: `Tests: regression with current docutils HEAD dependency`__ It is caused by commit [r10093] "Change section handling to not rely on exceptions and reparsing." I don't know whether the problem is in Sphinx or just in the test-suite. We should wait for a clarification/solution until releasing 0.22 final. Günter __ https://github.com/sphinx-doc/sphinx/issues/13539 |
From: engelbert g. <eng...@gm...> - 2025-05-06 17:29:55
|
hei everyone please try and test. Many changes for details see https://docutils.sourceforge.io/HISTORY.html reStructuredText: - Support `CSS3 units`_. This adds "ch", "rem", "vw", "vh", "vmin", "vmax", and "Q" to the `supported length units`__. Note that some output formats don't support all units. - New option "figname" for the `"figure"`_ directive. .. _CSS3 units: https://www.w3.org/TR/css-values-3/#lengths __ docs/ref/rst/restructuredtext.html#length-units Document Tree / Docutils DTD - Allow multiple <term> elements in a `\<definition_list_item>`__ (third-party writers may need adaption). - The first element in a <figure> may also be a <reference> (with nested "clickable" <image>). __ docs/ref/doctree.html#definition-list-item Configuration changes - Make MathML the default math_output_ for the "html5" writer. - Change the default input_encoding_ from ``None`` (auto-detect) to "utf-8". - Drop short options ``-i`` and ``-o``. Use the long equivalents ``--input-encoding`` and ``--output-encoding``. (See `command line interface`_ for the rationale.) - Rename configuration setting "output" to "output_path_". - The manpage writer now recognizes the sections [writers] and [manpage writer] with the new setting `text_references`_. Output changes LaTeX: Don't wrap references with custom reference-label_ in a ``\hyperref`` command. The "hyperref" package generates hyperlinks for labels by default, so there is no change in the PDF (except for "ref*"). Stop requiring "ifthen.sty". Replace use of ``\ifthenelse{\isundefined...`` with the eTeX primitive ``\ifdefined``. HTML5: Unitless image_ size measures__ are written as <img> "width" and "hight" values instead of "style" rules. The current behaviour is kept for values with units, so users may specify, e.g. ``:width: 50px`` instead of ``:width: 50`` to override CSS stylesheet rules. __ docs/ref/doctree.html#measure manpage: Don't UPPERCASE section headings. Handle hyperlink references (see text_references_). null: The "null" writer output changed from None to the empty string. `publish_string()` now returns a `bytes` or `str` instance for all writers (as documented). New objects `parsers.docutils_xml` parser for `Docutils XML`_ (e.g., the output of the "xml" writer). Provisional. Try ``docutils --parser=xml test/data/multiple-term-definitions.xml`` or use the :parser: option of the `"include"`_ directive to include an XML file in a rST document. `nodes.Element.validate()` Raise `nodes.ValidationError` if the element does not comply with the `Docutils Document Model`_. Provisional. `writers.DoctreeTranslator` Generic Docutils document tree translator base class with `uri2path()` auxiliary method. Provisional. Removed objects `core.Publisher.setup_option_parser()` internal, obsolete, `frontend.ConfigParser.get_section()` obsoleted by the configparser's "Mapping Protocol Access", `frontend.OptionParser.set_defaults_from_dict()` obsolete, `nodes.Element.set_class()` obsolete, append to Element['classes'] directly, `parsers.rst.directives.tables.CSVTable.decode_from_csv()` not required with Python 3, `parsers.rst.directives.tables.CSVTable.encode_from_csv()` not required with Python 3, `transforms.writer_aux.Compound` not used since Dec 2010, `utils.error_reporting` obsolete in Python 3, `utils.Reporter.set_conditions()` obsolete, set attributes via configuration settings or directly. Removed localisations Mistranslations of the "admonition" directive name: Use "advies" (af), "varsel" (da), "warnhinweis" (de), "aviso" (es), "sciigo" (eo), "annonce" (fr), "avviso" (it), "advies" (nl), "zauważenie" (pl) (introduced in Docutils 0.21) or the English name "admonition". New files ``docutils/parsers/rst/include/html-roles.txt`` `Standard definition file`_ for additional roles matching HTML tags. Removed files ``tools/rst2odt_prepstyles.py`` Obsoleted by `writers.odf_odt.prepstyles`. ``docutils/utils/roman.py`` Obsoleted by ``docutils/utils/_roman_numerals.py`` Bugfixes and improvements (see HISTORY_). |