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 · 1 comment
Open

manpage.rb: space ellipses more pleasantly #4568

g-branden-robinson opened this issue Mar 25, 2024 · 1 comment
Assignees
Labels
area/manpage Issues related to manual pages and the manpage converter enhancement
Milestone

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.

@mojavelinux
Copy link
Member

mojavelinux commented May 16, 2024

The .\|.\|. sequence seems to be used by many of the common man pages on Linux (grep being one example), so there's precedence for using it. I think this is something we can add in 2.1.x.

@mojavelinux mojavelinux added this to the v2.1.x milestone May 16, 2024
@mojavelinux mojavelinux self-assigned this May 16, 2024
@mojavelinux mojavelinux added enhancement area/manpage Issues related to manual pages and the manpage converter labels May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/manpage Issues related to manual pages and the manpage converter enhancement
Projects
None yet
Development

No branches or pull requests

2 participants