-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Escaping end of sentence characters #6613
Comments
Pay attention to the spaces after The issue is still there when justification and hyphenation are turned off:
|
The pandoc man page is generated using I can't actually recall why this feature -- inserting nonbreaking spaces after abbreviations -- is hooked up to the 'smart' extension rather than just operating by default. |
Here's what it looks like when you use
|
I can't see any reason not to use the Note that pandoc has a list of abbreviations it uses for this. In your example, you have |
If you want to do this manually, in pandoc's markdown you can simply do |
Somehow abbreviation file is not working for the I'm using
as the abbreviation file, and pandoc is still breaking names $ pandoc --abbreviations=abbr -f markdown -t man test.md | nroff
The RUNOFF typesetting system, whose input forms the basis for
roff, was written in MAD and FAP for the CTSS operating system by
Jerome E. Saltzer in 1964? Doug McIlroy rewrote it in BCPL in
1969, renaming it roff. Dennis M. Ritchie rewrote McIlroy’s
roff in PDP‐11 assembly for Version 1 AT&T UNIX, Joseph F. Os‐
sanna improved roff and renamed it nroff for Version 2 AT&T UNIX,
then ported nroff to C as troff, which Brian W. Kernighan re‐
leased with Version 7 AT&T UNIX. In 1989, James Clarke re‐imple‐
mented troff in C++, naming it groff. |
Though I can confirm that the escaped space does work. |
The abbreviation strings can't contain whitespace.
|
Thanks, this solution does work. I'll close this issue now. |
Is there a way to escape end of sentence characters when converting to man pages?
Consider this example from OpenBSD's
roff(7)
Pandoc will incorrectly break the abbreviation dot in names as sentence spaces:
I'm currently using
groff
withman-db
, but this problem should also affectmandoc
on BSDs.Abbreviation file should be a solution, but it doesn't seem to work for man pages.
Version
The text was updated successfully, but these errors were encountered: