Skip to content

Commit

Permalink
man: fix formatting of underscores
Browse files Browse the repository at this point in the history
In org-mode, underscores are used to represent subscripts.  Thus, `a_b`
will be transcoded to `a\d\s-2b\s+2\u`.  Configure org-mode only to do
this for `a_{b}`.

Signed-off-by: Jeremy Sowden <azazel@debian.org>
  • Loading branch information
a3a3el committed Mar 2, 2024
1 parent aa33c74 commit 7f98345
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions man/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ foreach src : man_orgs
expr_tmpl = ''.join([
'(progn',
' (require \'ox-man)',
' (setq org-export-with-sub-superscripts \'{})',
' (org-export-to-file \'man "@0@"))'])
expr = expr_tmpl.format(org.substring(0,-4))
sectiondir = join_paths(mandir, 'man' + section)
Expand Down

0 comments on commit 7f98345

Please sign in to comment.