• initGetObject(): Preserving trailing whitespace?

    From Nightfox@DIGDIST to All on Saturday, July 29, 2023 12:38:02
    I'm using File.iniGetObject() in some of my mods to get settings from its configuration file(s). It seems it trims whitespace from the values, and I'm wondering if there's a way to have it preserve trailing whitespace from the values?

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man to Nightfox on Saturday, July 29, 2023 21:49:12
    Re: initGetObject(): Preserving trailing whitespace?
    By: Nightfox to All on Sat Jul 29 2023 12:38 pm

    I'm using File.iniGetObject() in some of my mods to get settings from its configuration file(s). It seems it trims whitespace from the values, and I'm wondering if there's a way to have it preserve trailing whitespace from the values?

    Yes: https://wiki.synchro.net/config:ini_files#string_literals
    --
    digital man (rob)

    Synchronet/BBS Terminology Definition #68:
    SCFG = Synchronet Configuration Utility
    Norco, CA WX: 76.1°F, 69.0% humidity, 0 mph ESE wind, 0.00 inches rain/24hrs
  • From Nightfox@DIGDIST to Digital Man on Saturday, July 29, 2023 22:54:58
    Re: initGetObject(): Preserving trailing whitespace?
    By: Digital Man to Nightfox on Sat Jul 29 2023 09:49 pm

    I'm using File.iniGetObject() in some of my mods to get settings from its
    configuration file(s). It seems it trims whitespace from the values, and
    I'm wondering if there's a way to have it preserve trailing whitespace from
    the values?

    Yes: https://wiki.synchro.net/config:ini_files#string_literals

    Ah, cool, thanks.

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com