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

Can blank lines be preserved? #74

Open
elgs opened this issue Jul 18, 2021 · 0 comments
Open

Can blank lines be preserved? #74

elgs opened this issue Jul 18, 2021 · 0 comments

Comments

@elgs
Copy link

elgs commented Jul 18, 2021

const figlet = require("figlet")

const text = `


hello



world


`;

console.log(figlet.textSync(text));

yields the following output:

  _          _ _             
 | |__   ___| | | ___        
 | '_ \ / _ \ | |/ _ \       
 | | | |  __/ | | (_) |      
 |_| |_|\___|_|_|\___/     _ 
 __      _____  _ __| | __| |
 \ \ /\ / / _ \| '__| |/ _` |
  \ V  V / (_) | |  | | (_| |
   \_/\_/ \___/|_|  |_|\__,_|

So is there a way the blanks lines can be preserved?

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

1 participant