.. _Whitespace:

Whitespace
==========


-  **Trim end of line whitespace** (ro.amiq.edt/format.whitespace.trim_end_of_line) - When enabled, end of line whitespace is deleted.

.. list-table::
   :header-rows: 1
   :widths: auto

   * - Before
     - After
   * - .. figure:: ../../images/common/before-trim-end-of-line-whites-e.png
     - .. figure:: ../../images/common/after-trim-end-of-line-whites-e.png


-  **Trim whitespace lines** (ro.amiq.edt/format.whitespace.trim_whitespace_line) - When enabled, whitespace line are deleted.

.. list-table::
   :header-rows: 1
   :widths: auto

   * - Before
     - After
   * - .. figure:: ../../images/common/before-trim-whitespace-lines-e.png
     - .. figure:: ../../images/common/after-trim-whitespace-lines-e.png



-  **Compact whitespace groups** (ro.amiq.edt/format.whitespace.compact) - When enabled, consecutive whitespace characters are trimmed to a single space character. It does not affect indentation, that is the whitespace at the beginning of a line is not affected by this option.

.. list-table::
   :header-rows: 1
   :widths: auto

   * - Before
     - After
   * - .. figure:: ../../images/common/before-compact-whitespace-group-e.png
     - .. figure:: ../../images/common/after-compact-whitespace-group-e.png


-  **Compact consecutive empty lines** (ro.amiq.edt/format.whitespace.compact_consecutive_empty_lines) - When enabled, consecutive empty lines are compacted into groups of lines whose number is less than or equal to a specified value. It does not affect the empty lines inside multi-line comments.
    -  **Maximum number of consecutive empty lines** (ro.amiq.edt/format.whitespace.maximum_nof_consecutive_empty_lines) - Consecutive empty lines are compacted when their number exceeds this value.

.. list-table::
   :header-rows: 1
   :widths: auto

   * - Before
     - After (Preference is set to "1")
   * - .. figure:: ../../images/common/before-compact-consecutive-empty-lines-e.png
     - .. figure:: ../../images/common/after-compact-consecutive-empty-lines-e.png

