[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: indent vs reformat
From: |
Urs Liska |
Subject: |
Re: indent vs reformat |
Date: |
Wed, 08 Jan 2014 15:29:11 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.0 |
Am 08.01.2014 09:44, schrieb Martin Tarenskeen:
Hi,
It's not quite clear to me what the difference is between "indent" and
"reformat" using python-ly ?
a) it's the same as using the respective commands inside Frescobaldi.
b) Indent only takes care of the indent levels of the code lines.
Reformat performs addditional tasks.
From the ly source files:
"""Add newlines around indent and dedent tokens where needed.
If there is stuff after a { or << (that's not closed on the same line)
it is put on a new line, and if there if stuff before a } or >>, the }
or >> is put on a new line.
It is necessary to run the indenter again over the same part of the
document, as it will look garbled with the added newlines.
"""
"""Move line comments with more than 2 comment characters to column 0."""
"""Removes whitespace from all lines in the cursor's range."""
HTH
Urs