Source: astyle
Version: 3.1-3
Followup-For: Bug #1116302
X-Debbugs-Cc: Matthias Geiger <[email protected]>

Dear fellow Debian Maintainer,

Please find attached my updated version to 3.6.12: Builds, installes and
fixes Arduino IDE.

This update may be a requisite to fix the "auto formatting feature" in the
Arduino IDE: <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1104936>
It requires one minor change because of some very old deprecation from
2.05 (2014-11) being removed now <https://astyle.sourceforge.net/news.html>:

> A new option, "indent-preproc-cond", will indent preprocessor
> conditional statements (#if #elif, #else, #endif). It is described in
> the "Indentation Options" section of the documentation. The option
> "indent-preprocessor" has been deprecated and will be removed in a
> future release. Use "indent-preproc-define" instead. The processing of
> preprocessor #define statements has not changed.

--- /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

I can also do an NMU upload if you prefer.
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

Attachment: astyle_3.6.12-0.1.debian.tar.xz
Description: application/xz

Reply via email to