Verible formatter linebreak capabilities

28 views
Skip to first unread message

Shaun chua

unread,
May 24, 2023, 4:32:48 PM5/24/23
to Verible Users
Hi there Verible community, 

Is Verible capable to clean up large amount of blank lines? 
I thought that the `line_break_penalty` flag would be helpful here, but couldn't see any significant outcomes.  
Thanks. 

Example Original code:

         // some code 1 

       < 5 new lines between code 1 and 2>


       // some code 2 


Formatted to:

      // some code 1 
   < 1 new lines between code 1 and 2>
   // some code 2

 

David Fang

unread,
May 30, 2023, 12:36:01 AM5/30/23
to Shaun chua, Verible Users
At the moment, formatting preserves vertical spacing.
Some test cases can be found here:

Adjusting vertical spacing is prevalent in other formatters, so it would be reasonable to request this.

--
You received this message because you are subscribed to the Google Groups "Verible Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to verible-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/verible-users/200feb55-f0c0-4e0c-ae1e-dfa613123540n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages