question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Qute: remove whitespace around type declarations

See original GitHub issue

If I declare parameter types in my template:

{@java.lang.String name}
{@java.lang.String foo}

Here is my email

Then the output is \n\n\nHere is my email because whitespace isn’t stripped between the type declarations and the first content. Note that this is mostly an issue for email and plaintext, but still.

Now, perhaps it’s important to allow whitespace before the first content, but even in this case, we should strip whitespace before/between type declarations and the last newline after it?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
adrianfiedlercommented, Apr 28, 2020

@mkouba sorry. I was a little too fast. But it was fun to play around with Qute rendering 🙂

0reactions
mkoubacommented, Apr 29, 2020

@adrianfiedler No problem at all. I’m looking forward to your future contributions! 😃.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove whitespace from string excluding parts between pairs ...
You have to loop over the string and you want to use a flag. If the flag is true, then you delete the...
Read more >
Remove Spaces from String in Python - FavTutor
All whitespaces are replaced with no space("") using the replace() method. For example: def remove(string): return string.replace(" ", "") ...
Read more >
How to remove trailing spaces from makefile variable?
No, there's no way to change the way make parses variable definitions. If you can't change the point at which variables are defined, ......
Read more >
Remove all spaces from string - Power Platform Community
Solved: Hi, does anyone know how to remove all spaces from a string, thus concatenating it? Example: "this is my string" when all...
Read more >
Delete with delimiters, but not whitespace around (vim)
Use 2 d i " (or d 2 i " , which is the same). This is a special case of using count...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found