8000 Preserve whitespace in output shortcode by nmelehan · Pull Request #2760 · linode/docs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Preserve whitespace in output shortcode #2760

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

Merged

Conversation

nmelehan
Copy link
Contributor
@nmelehan nmelehan commented Sep 30, 2019

The {{< output >}} shortcode currently doesn't preserve whitespace, and also causes line-breaks when text wraps, which can end up with some poor formatting for commands that print tables, like netstat:

netstat-whitespace-pre-line

This update will preserve the whitespace:

netstat-whitespace-pre

This shortcode is being used a lot by @mactsouk in contributed guides (as it should be 👍), so this will help in reviewing those contributions. This has also come up in the past; my hack used to be to put the output into a normal tab-indented code block, and now we won't have to do that.

@nmelehan
Copy link
Contributor Author

Deploy preview for nostalgic-ptolemy-b01ab8 ready!

Built with commit ef25888

https://deploy-preview-2760--nostalgic-ptolemy-b01ab8.netlify.com

@hzoppetti hzoppetti merged commit 0d33afe into linode:develop Oct 4, 2019
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.

2 participants
0