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

--help=plain and Latin1 non-breakable space. #318

Open
vrotaru opened this issue Aug 15, 2021 · 0 comments
Open

--help=plain and Latin1 non-breakable space. #318

vrotaru opened this issue Aug 15, 2021 · 0 comments

Comments

@vrotaru
Copy link

vrotaru commented Aug 15, 2021

That's what I get when run ocp-indent --help=plain on Fedora in gnome-terminal. (but the problem is probably, more general)
image

The problem is the pre function in IndentConfig
which generates a list of `P lines separated with `Noblank to emulate a pre-formated block. it also replaces leading spaces with \xa0 (Latin1 non-breakable space).

Which does not render correctly on UTF-8 terminals. It also seems quite unnecessay since the is support for 'Pre block in cmdliner. This below seem to fix the problem.

   let pre s = [`Pre s]

Let me know if you want a PR.

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