This paragraph is parsed as shown below, i.e., as a code block with a 'nim' class. It might be possible to use this info to control how it's rendered in the PDF? Or use a different PDF engine, e.g., I just tried it with wkhtmltopdf (and no special CSS) and the text wraps as expected ("from" is formatted in a different colour but perhaps that's intended). [130] Para { content: Inlines { [1] Str text: "These" [2] Space {} [3] Str text: "keywords" [4] Space {} [5] Str text: "are" [6] Space {} [7] Str text: "also" [8] Space {} [9] Str text: "operators:" [10] SoftBreak {} [11] Code { attr: Attr { attributes: AttributeList {} classes: List { [1] "nim" } identifier: "" } text: "and or not xor shl shr div mod in notin is isnot of as from" } [12] Str text: "." } } On Thu, 14 Jul 2022 at 01:16, almaghfuur lahu wrote: > This's, just now, the result of Github issue > https://github.com/jgm/pandoc/issues/8172 > > Now after leading steps getting solved, next step is need to fix a > imperfection on some lines overrun the right alignment margin > > How actually is the rst's width and margin alignment setting command to > correctly have the max column number laid out, or that is determined > implicitly by pandoc on the run when trying accomplishing it by: > > pandoc -f rst -t pdf -o manual.pdf manual.rst > > ? improper line is e.g: > > *These keywords are also operators: and or not xor shl shr div mod in > notin is isnot of as from.* > > ... notin <= longer than it > > Real PDF document being viewed: > > *These keywords are also operators: and or not xor shl shr div mod in > notin is isnot of as from.* > > Needed wrapped/broken to: > * These keywords are also operators: and or not xor shl shr div mod in > notin* > * is isnot of as from. * > > Please show the logical way to solve correctly so that can be done in > batch by find-replace regex tool > > the rst: > > https://drive.google.com/file/d/19DJ8at1Fze8-HEEzg3n9xLrSB9tIaqW5/view?usp=sharing > > -- > You received this message because you are subscribed to the Google Groups > "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/e63b0064-87dd-431a-b346-de9e4c220785n%40googlegroups.com > > . > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAEe_xxi%3D4ZT%2BRyhGPAtWiWFE1phYgshYubzA-%2BG7B2mESXJrpA%40mail.gmail.com.