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.

Add newlines on sort format

See original GitHub issue

Hi,

When specifying <keepBlankLines>false</keepBlankLines> no empty lines are preserved.

I haven’t found any configuration for this, and it does not respect the newlines in the format file.

Is it possible to enforce newlines between sections as part of the sort/formatting?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Ekrydcommented, Apr 12, 2018

Started with a small test to see the actual custom sort order file. We will see if these newlines can be picked up. One thing though, the <newLine> till be marked with red since it isn’t part of the http://maven.apache.org/maven-v4_0_0.xsd

0reactions
SvenssonWebcommented, May 14, 2018

Thank you for looking into it. I’ll definitely look into it when I get the time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to add new lines using sort - The UNIX and Linux Forums
Hello, I'm trying to sort a file which has many lines with the sort command. ... The line terminator in a unix format...
Read more >
sort -o appends newline to end of file - why? - Stack Overflow
I'm working on a small text file with a list of words in it that I want to add a ...
Read more >
How to add a newline to the end of a file? - Unix StackExchange
Here you go: sed -i -e '$a\' file. And alternatively for OS X sed : sed -i '' -e '$a\' file. This adds...
Read more >
Handle line breaks (newlines) in Python - nkmk note
This article describes how to handle strings including line breaks (line feeds, new lines) in Python. Create a string containing line breaks.
Read more >
Possible to Insert Manual Line Break in Custom Formatting?
1. In the Custom format box, type. ddd / dd mmm yyyy Ctrl+J hh:mm AM/PM · 2. On the next tab, select Wrap...
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