You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The most prevalent use of the data format supported by this module is the Arduino library metadata file (library.properties). It is common for the value of some properties (especially paragraph) to be quite long.
🙂 It would be useful to support line continuation of property values to allow the value to be split into multiple lines for the sake of readability and maintainable of the data.
For example, this library.properties file:
name=Ulm_Weatherballoon
version=0.3.1
author=Falko Schmidt
maintainer=Falko Schmidt
sentence=Library for high altitude applications.
paragraph=This software is designed for high-altitude weather balloons, enabling them to reach the edge of space and collect data from the stratosphere. However, please note that not all implementations have been fully tested in actual flight conditions.
category=Sensors
url=https://gitlab.com/F-Schmidt/ulm_weatherballoon
architectures=rp2040,mbed_rp2040
depends=Adafruit NeoPixel,Adafruit SSD1306,Adafruit ADXL343,Adafruit MAX1704X,ENS160 - Adafruit Fork,Sensirion I2C SCD4x,Adafruit LIS3MDL,Adafruit BMP280 Library,Adafruit LPS2X,Adafruit RTClib,Sensirion I2C SHT4x,DallasTemperature,SdFat - Adafruit Fork
would be more readable and maintainable if it could be formatted like so:
name=Ulm_Weatherballoon
version=0.3.0
author=Falko Schmidt
maintainer=Falko Schmidt
sentence=Library for high altitude applications.
paragraph=This software can be used for high altitude weather balloons to reach the edge of space! Special classes \
and algorithms are used to provide a successful ride reaching the stars. Please note, that not all implementations \
are yet practically tested in a flight.
category=Sensors
url=https://gitlab.com/F-Schmidt/ulm_weatherballoon
architectures=rp2040,mbed_rp2040
depends=Adafruit NeoPixel,\
Adafruit SSD1306,\
Adafruit ADXL343,\
Adafruit MAX1704X,\
ENS160 - Adafruit Fork,\
Sensirion I2C SCD4x,\
Adafruit LIS3MDL,\
Adafruit BMP280 Library,\
Adafruit LPS2X,\
Adafruit RTClib,\
Sensirion I2C SHT4x,\
DallasTemperature,\
SdFat - Adafruit Fork
However, with the latter content in library.properties, the Arduino development tools will not recognize the library.
Describe the current behavior
Line continuation is not supported in property values, so the entire property definition must be placed on a single line.
If line continuation is attempted, the module can not load the data:
It appears that the Java "properties" file data format (which I would guess to be the ancestor of the Arduino "properties" data format) does support line continuation, using the standard \ line continuation marker:
Describe the request
The most prevalent use of the data format supported by this module is the Arduino library metadata file (
library.properties
). It is common for the value of some properties (especiallyparagraph
) to be quite long.🙂 It would be useful to support line continuation of property values to allow the value to be split into multiple lines for the sake of readability and maintainable of the data.
For example, this
library.properties
file:would be more readable and maintainable if it could be formatted like so:
However, with the latter content in
library.properties
, the Arduino development tools will not recognize the library.Describe the current behavior
Line continuation is not supported in property values, so the entire property definition must be placed on a single line.
If line continuation is attempted, the module can not load the data:
🙁 This can result in excessively long lines, which harms readability.
github.com/arduino/go-properties-orderedmap version
d55cecc
Additional context
It appears that the Java "properties" file data format (which I would guess to be the ancestor of the Arduino "properties" data format) does support line continuation, using the standard
\
line continuation marker:https://en.wikipedia.org/wiki/.properties#Format
Keywords
"carriage return"
"escape"
"line break"
"new line"
"newline"
Issue checklist
The text was updated successfully, but these errors were encountered: