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

inline the output #7

Open
EncodePanda opened this issue Dec 14, 2020 · 1 comment
Open

inline the output #7

EncodePanda opened this issue Dec 14, 2020 · 1 comment

Comments

@EncodePanda
Copy link

EncodePanda commented Dec 14, 2020

Example 1

# {{ chapterHeader }} - Introduction

produces

# 
  Chapter 0
    - Introduction

but I was hoping for

# Chapter 0 - Introduction

Example 2

This blog post was written using {{ shellOut ghc --version }}.

produces

This blog post was written using 
The Glorious Glasgow Haskell Compilation System, version 8.10.2

.

but I was hoping for

This blog post was written using The Glorious Glasgow Haskell Compilation System, version 8.10.2.

Help :)

Is there a workaround for this?

@chrissound
Copy link
Owner

Hmmm, had a quick look and can't seem to figure out where this would be coming from. I think it's the renderChapterTemplate function. Will try take another look this evening.

Probably also you'll have to strip a newline at the end from some commands (like ghc --version) which output this by default. But this could be done with a simple | tr -d '\n' at the end of the command.

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

2 participants