useblocks / sphinx-simplepdf

A simple PDF builder for Sphinx documentations
https://sphinx-simplepdf.readthedocs.io
MIT License
35 stars 17 forks source link

Long inline code within paragraph breaks formatting in PDF #66

Closed sachin-suresh-rapyuta closed 1 year ago

sachin-suresh-rapyuta commented 1 year ago

I have an inline code in a paragraph like below in RST :

To verify the progress of the operation objects obtained in :ref:Step 1<Step 1: Upload CSV documents>, use the GET /v1/operations/ endpoint. We can conveniently pass the operation object IDs as query parameters to narrow its results. For example: GET /v1/operations/?id=<operation_obj_1_id>&id=<operation_obj_2_id>&...&id=<operation_obj_n_id>.

But, the PDF output for this line has too many white spaces:

image

sachin-suresh-rapyuta commented 1 year ago

I can use the codeblock, but I don't see using codeblock for a single line makes sense. There should be a way to fix this line-breaking issue from simplepdf style?

danwos commented 1 year ago

I think we need to fix some CSS here. But I'm not sure which rules, yet. Also our DEMO-PDF has 1-2 examples, which are shown this problem.

Thanks for reporting it.