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 🐓 -- System Information: Debian Release: 13.1 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.12.48+deb13-amd64 (SMP w/16 CPU threads; PREEMPT) Kernel taint flags: TAINT_OOT_MODULE Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de:en_US Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages arduino depends on: ii arduino-builder 1.3.25-5+b2 ii arduino-core-avr 1.8.6+dfsg-2 ii avrdude 7.1+dfsg-3+b2 ii default-jre 2:1.21-76 ii dpkg-dev 1.22.21 ii libastylej-jni 3.6.12-0.1 ii libbatik-java 1.18+dfsg-2 ii libbcpg-java 1.80-3 ii libbcprov-java 1.80-3 ii libbcutil-java 1.80-3 ii libcommons-codec-java 1.18.0-1 ii libcommons-compress-java 1.27.1-2 ii libcommons-exec-java 1.3-3 ii libcommons-io-java 2.19.0-1 ii libcommons-lang3-java 3.17.0-1 ii libcommons-logging-java 1.3.0-2 ii libcommons-net-java 3.9.0-1 ii libhttpclient-java 4.5.14-1 ii libjackson2-annotations-java 2.14.0-1 ii libjackson2-core-java 2.14.1-1 ii libjackson2-databind-java 2.14.0+ds-1 ii libjaxp1.3-java 1.3.05-6 ii libjmdns-java 3.5.5-1 ii libjna-java 5.15.0-1 ii libjna-platform-java 5.15.0-1 ii libjsch-java 0.2.19-1 ii libjssc-java 2.8.0-4 ii liblistserialsj-dev 1.4.0+repack-1+b2 ii liblog4j2-java 2.19.0-2 ii librsyntaxtextarea-java 2.5.8-2 ii librxtx-java 2.2.0+dfsg-3.1 ii libsemver-java 0.10.2-2 ii libslf4j-java 1.7.32-2 ii libxml-commons-external-java 1.4.01-6 ii libxmlgraphics-commons-java 2.10-3 ii pkexec 126-2 Versions of packages arduino recommends: ii extra-xdg-menus 1.0-7 arduino suggests no packages. -- no debconf information

