Skip to content
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

manpage.rb: space ellipses more pleasantly #4568

Open
g-branden-robinson opened this issue Mar 25, 2024 · 0 comments
Open

manpage.rb: space ellipses more pleasantly #4568

g-branden-robinson opened this issue Mar 25, 2024 · 0 comments

Comments

@g-branden-robinson
Copy link

g-branden-robinson commented Mar 25, 2024

.gsub(EllipsisCharRefRx, '...') # horizontal ellipsis

groff_man_style(7):

   Portability
...
     \|        Thin space (one‐sixth em on typesetters, zero‐width on
               terminals); a non‐breaking space.  Used primarily in
               ellipses (“.\|.\|.”) to space the dots more pleasantly on
               typesetters like dvi, pdf, and ps.

The \| escape sequence is universally portable to roff implementations; it appeared in Joe Ossanna's CSTR #54 in 1976.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant