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

[std] Use consistent margins for codeblocks. #3187

Merged
merged 1 commit into from Oct 6, 2019

Conversation

Eelis
Copy link
Contributor

@Eelis Eelis commented Aug 20, 2019

Fixes #3186.

Copy link
Member

@jensmaurer jensmaurer left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@tkoeppe
Copy link
Contributor

tkoeppe commented Aug 20, 2019

I think this is good, but would like @zygoloid to confirm that this isn't undoing some of the "deliberate diversity of core style".

@jensmaurer
Copy link
Member

I certainly hope that random full-codeblock indentation isn't part of the "core diversity".

@godbyk
Copy link
Contributor

godbyk commented Aug 20, 2019

If you wish to keep the indentation in the LaTeX source code but have it removed in the PDF output, you can add gobble=n to \lstset (where n is the number of characters to outdent the code block).

@jensmaurer
Copy link
Member

Thanks, @godbyk. Though I doubt we want to allow inconsistent codeblock indentation across the LaTeX source to start with.

@zygoloid zygoloid merged commit aca6cf7 into cplusplus:master Oct 6, 2019
@Eelis Eelis deleted the codemargin branch October 6, 2019 09: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.

[everywhere] Use consistent margins for codeblocks
5 participants