Control: tags -1 patch
On Fri, 26 Sep 2025 11:19:12 +0200 Philipp Matthias Hahn
<[email protected]> wrote:
Package: arduino
Version: 2:1.8.19+dfsg1-3
Followup-For: Bug #1104936
Dear fellow Debian Maintainer,
I have successfully build the new version of astyle-3.6.12 locally and
confirm, that this fixes the auto formatting feature in Arduino IDE.
It requires one minor change to formatter.conf as AStyle finally removed
a feature deprecated in version 2.05 from 2014-11:
<https://astyle.sourceforge.net/news.html>
> A new preprocessor indent option "indent-preproc-block" will indent
> preprocessor block statements one additional indent. The block must be
> top-level, or included within a namespace, and there are restrictions
> on what can be indented. The option is described in the "Indentation
> Options" section of the documentation.
--- /usr/share/arduino/lib/formatter.conf 2025-04-09 11:20:48.000000000
+0200
+++ /home/pmhahn/.arduino15/formatter.conf 2025-09-26 10:58:58.517364342
+0200
@@ -11,7 +11,8 @@
indent=spaces=2
# also indent macros
-indent-preprocessor
+indent-preproc-define
+indent-preproc-cond
# indent classes, switches (and cases), comments starting at column 1
indent-classes
Philipp 🐓
Hi Philipp,
thanks for tracking down the exact reason. I filed a blocking bug to
update astyle to 3.6.1 or greater; once this is updated I'll upload the
IDE with said patch applied.
best,
werdahias