brechtm / rinohtype

The Python document processor
http://www.mos6581.org/rinohtype
GNU Affero General Public License v3.0
506 stars 61 forks source link

rinohtype hangs without errors if version 0.5.5+ #436

Open nicozanf opened 1 month ago

nicozanf commented 1 month ago

Is there an existing issue for this?

Sphinx or rinoh output

Just hang forever (need CTRL-C to gain contro) during rendering with just the command:

rinoh chapter-03.rst

with version 0.5.5 and even current master. It works fine with version 0.5.4. The last lines are:

chapter-03.rst:286 <system_message>] chapter-03.rst:285: (INFO/1) No role entry for "kbd" in module "docutils.parsers.rst.languages.en".
Trying "kbd" as canonical role name. (page 4)
[chapter-03.rst:286 <system_message>] chapter-03.rst:285: (ERROR/3) Unknown interpreted text role "kbd". (page 4)
[chapter-03.rst:311 <image>] Error opening image file: [Errno 2] No such file or directory: 'images/command.png'
[chapter-03.rst:320 <system_message>] chapter-03.rst:320: (INFO/1) Duplicate implicit target name: "call command option". (page 4)
[chapter-03.rst:348 <system_message>] chapter-03.rst:348: (INFO/1) Duplicate implicit target name: "new_app command option". (page 4)
[chapter-03.rst:370 <system_message>] chapter-03.rst:370: (INFO/1) Duplicate implicit target name: "run command option". (page 5)

Source files

https://github.com/web2py/py4web/blob/master/docs/chapter-03.rst

Versions

Error with version 0.5.5 and even current master

Sphinx 8.1.1
Python 3.12.7 (main, Oct  3 2024, 15:15:22) [GCC 14.2.0]
Linux-6.11.0-8-generic-x86_64-with-glibc2.40
Latest Ubuntu 24.10

It works fine with version 0.5.4.
nicozanf commented 1 month ago

I've reduced the hanging rst file to this string:

::

- justalongstringjustalongstringjustalongstringjustalongstringjustalongstringjustalongstringjustaZ

If you save it as a .rst file, rinoh 0.5.5+ hangs with it. Remove a character (for example the trailing Z on column 98) or using 0.5.4 resolves the problem