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

Remove stray whitespace after opening parentheses. #1364

Merged
merged 1 commit into from Jan 17, 2017

Conversation

Eelis
Copy link
Contributor

@Eelis Eelis commented Jan 14, 2017

No description provided.

@tkoeppe
Copy link
Contributor

tkoeppe commented Jan 14, 2017

Any visual diffs?

@Eelis
Copy link
Contributor Author

Eelis commented Jan 14, 2017

Yeah, these spaces are visible, so this fixes actual artifacts.

@tkoeppe
Copy link
Contributor

tkoeppe commented Jan 16, 2017

Yes, right, do you have a screenshot? It looks sane.

@@ -15881,7 +15881,7 @@
\tcode{is_constructible_v<T,}\br
\tcode{Args...>} is \tcode{true} and the variable
definition for \tcode{is_constructible}, as defined below, is known to call
no operation that is not trivial (~\ref{basic.types},~\ref{special}). &
no operation that is not trivial (\ref{basic.types},~\ref{special}). &
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We usually do blah~(\ref so it looks as though the ~ just got put in the wrong place here. Do we want to move it rather than removing it?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yes, that's where that comes from. I think we can do without those non-breaking spaces in general, though: Either there's no linebreak and all is well, or we do need a line break, and in that case it's better to break before the paren than have an overfull box.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me disagree here. LaTeX might very well reflow the entire paragraph (without causing an overfull hbox) to avoid a linebreak at the tilde. I think it's good practice not to have a cross-reference at the start of a line. Is there a way to tell LaTeX "I don't want you to linebreak here, but before you produce an Overfull hbox, do it nonetheless"? If we can't do that, we have to consider the few cases where ~\ref produces an Overfull hbox on an individual basis.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could make a space with a positive but non-infinite penalty. But that's going too far; we can keep the non-breaking space and remove it on a case-by-case basis.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jwakely Good point, thanks. Patch amended.

@Eelis
Copy link
Contributor Author

Eelis commented Jan 17, 2017

diff

@jwakely jwakely merged commit f5f4b97 into cplusplus:master Jan 17, 2017
@Eelis Eelis deleted the parenws branch January 17, 2017 11:42
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

4 participants