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

Escape backslash in xo_emit.3 so it renders correctly #76

Closed
wants to merge 1 commit into from

Conversation

rwatson
Copy link

@rwatson rwatson commented Dec 27, 2020

The unescaped "\n" in xo_emit.3 generates incorrect output when rendered:

           xo_emit(" {:lines/%7ju} {:words/%7ju} "
                   "{:characters/%7ju} {d:filename/%s}0,
                   linect, wordct, charct, file);

This change escapes as "\en" so that the example code renders correctly.

@philshafer
Copy link
Contributor

I have a fix in the "develop" branch changing the "\n" to "\n". Is that sufficient or does it need changed to "\en"?
Either way, I'll need to spin a new release and import it into freebsd.

Thanks,
Phil

@rwatson
Copy link
Author

rwatson commented Dec 30, 2020

I'm afraid those both look the same to me. In my original patch I wrote "\n" and it rendered right, but on reading the nroff documentation, \en is preferred, it appears. But we could ask someone who actually understands nroff for their opinion?

@philshafer
Copy link
Contributor

Fixed in 'develop'

@philshafer philshafer closed this Jun 29, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants