mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Tiny formatter improvements
This commit is contained in:
parent
e261180dcc
commit
e5cde71fc1
4 changed files with 155 additions and 166 deletions
|
@ -24,9 +24,8 @@ import os
|
|||
import sys
|
||||
import typing as T
|
||||
|
||||
from . import interactive_port, parser, tokenizer
|
||||
from . import formatter, interactive_port, parser, tokenizer
|
||||
from .errors import CompileError, CompilerBugError, PrintableError, report_bug
|
||||
from .formatter import Formatter
|
||||
from .gir import add_typelib_search_path
|
||||
from .lsp import LanguageServer
|
||||
from .outputs import XmlOutput
|
||||
|
@ -211,7 +210,7 @@ class BlueprintApp:
|
|||
except:
|
||||
errored = True
|
||||
|
||||
formatted_str = Formatter.format(data, opts.spaces_num, not opts.tabs)
|
||||
formatted_str = formatter.format(data, opts.spaces_num, not opts.tabs)
|
||||
|
||||
if data != formatted_str:
|
||||
happened = "Would format"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue