Skip to content

Code Style - Clarification needed for whitespace after closing bracket guidelines #204

Description

@colinkiama

In the Whitespace section, it's unclear what should happen if a series of lines end with a closing bracket and semi-colon.

For example:

var open_in_terminal_pane_item = new Gtk.MenuItem () {
    action_name = MainWindow.ACTION_PREFIX + MainWindow.ACTION_OPEN_IN_TERMINAL,
    action_target = new Variant.string (file.file.get_path ())
};

and:

var open_in_terminal_pane_label = new Granite.AccelLabel.from_action_name (
    _("Open in Terminal Pane"),
     MainWindow.ACTION_PREFIX + MainWindow.ACTION_OPEN_IN_TERMINAL + "::"
);

Should a blank line get added after the semi-colon (;) in the examples above?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions