From: Günter M. <mi...@us...> - 2024-03-05 16:40:56
|
Two minor points: * You can add a class value to a literal block preceding it with a "class" directive ("rst-class" with Sphinx): ~~~ .. class:: testme :: a literal block ~~~ * TABs are converted to spaces in literal blocks, too :( --- **[feature-requests:#97] --disable-tab-expansion flag** **Status:** open **Group:** Default **Created:** Sun Jul 16, 2023 09:21 AM UTC by toastal **Last Updated:** Tue Dec 12, 2023 04:14 PM UTC **Owner:** nobody > Spaces are recommended for indentation, but tabs may also be used. Tabs will be converted to spaces. Tab stops are at every 8th column (processing systems may make this value configurable). Why tho? By converting tabs to spaces, we lose the accessibility aspect that tabs provide by letting the reader decide what’s comfortable to them as tab-width should be configurable on the reader’s side, not the writer’s. Some programming languages, like Go, tabs are overwhelmingly preferred & sometimes even required. Copying some code would not work. I would like to see a `--disable-tab-expansion` flag that lets the author choose how they want their output to be output. --- 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. |