MCPcopy Create free account
hub / github.com/LibrePCB/LibrePCB / format_ui

Function format_ui

dev/format_code_helper.py:53–58  ·  view source on GitHub ↗
(content)

Source from the content-addressed store, hash-verified

51
52
53def format_ui(content):
54 # Remove unnecessary paths to *.qrc files.
55 content = re.sub(r'\s*resource=".*\.qrc"', r'', content)
56 content = re.sub(r'<resources>.*</resources>',
57 r'<resources/>', content, flags=(re.M | re.S))
58 return content
59
60
61def format_slint(content):

Callers 1

Calls 1

subMethod · 0.45

Tested by

no test coverage detected