mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
parent
8c6f8760f7
commit
29e4a56bfc
3 changed files with 8 additions and 1 deletions
|
@ -193,6 +193,9 @@ def format(data, tab_size=2, insert_space=True):
|
|||
elif prev_line_type in require_extra_newline:
|
||||
newlines = 2
|
||||
|
||||
current_line = "\n".join(
|
||||
[line.rstrip() for line in current_line.split("\n")]
|
||||
)
|
||||
commit_current_line(LineType.COMMENT, newlines_before=newlines)
|
||||
|
||||
else: # pragma: no cover
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
using Gtk 4.0;
|
||||
//comment
|
||||
//comment
|
||||
// Trailing whitespace:
|
||||
//
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
using Gtk 4.0;
|
||||
// comment
|
||||
// Trailing whitespace:
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue