mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-06-22 23:19:25 -04:00
Merge branch 'wip/velsinki/formatting-improve-comments' into 'main'
Improve comment formatting and Gtk.Scale fix See merge request GNOME/blueprint-compiler!246
This commit is contained in:
commit
f8849d9084
6 changed files with 22 additions and 18 deletions
|
@ -167,8 +167,11 @@ def decompile_mark(
|
|||
comments=None,
|
||||
context=None,
|
||||
):
|
||||
comments, translatable = decompile_translatable(
|
||||
cdata, translatable, context, comments
|
||||
)
|
||||
if comments is not None:
|
||||
ctx.print(f"/* Translators: {comments} */")
|
||||
ctx.print(comments)
|
||||
|
||||
text = f"mark ({value}"
|
||||
|
||||
|
@ -177,10 +180,7 @@ def decompile_mark(
|
|||
elif cdata:
|
||||
text += f", bottom"
|
||||
|
||||
if truthy(translatable):
|
||||
comments, translatable = decompile_translatable(
|
||||
cdata, translatable, context, comments
|
||||
)
|
||||
if cdata:
|
||||
text += f", {translatable}"
|
||||
|
||||
text += "),"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue