[0.17.66] Locale entries starting with a space are ignored.

Bugs that are actually features.
Post Reply
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

[0.17.66] Locale entries starting with a space are ignored.

Post by eradicator »

What?

A locale entry whichs value starts with an ASCII space is treated as an unknown key:

Code: Select all

stockpile-logistic-infix= (__1__)
Entries that start with a *visual* space or a new line or a full-width space (UTF8) work fine:

Code: Select all

stockpile-logistic-infix=[color=default] (__1__)[/color]
stockpile-logistic-infix=\n(__1__)
stockpile-logistic-infix= (__1__)
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

User avatar
steinio
Smart Inserter
Smart Inserter
Posts: 2633
Joined: Sat Mar 12, 2016 4:19 pm
Contact:

Re: [0.17.66] Locale entries starting with a space are ignored.

Post by steinio »

Spaces are not allowed anymore before and after the =.
Image

Transport Belt Repair Man

View unread Posts

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: [0.17.66] Locale entries starting with a space are ignored.

Post by eradicator »

steinio wrote:
Sun Sep 08, 2019 8:47 am
Spaces are not allowed anymore before and after the =.
Non-Ascii spaces work just fine in the value (and i'm not talking about the key). If they're actually not supposed to work it would be nice to throw an error. But honestly i'd prefer if i didn't have to use hacks like color=white rich-text tags or non-ascii spaces for such a simple thing.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Pi-C
Smart Inserter
Smart Inserter
Posts: 1651
Joined: Sun Oct 14, 2018 8:13 am
Contact:

Re: [0.17.66] Locale entries starting with a space are ignored.

Post by Pi-C »

steinio wrote:
Sun Sep 08, 2019 8:47 am
Spaces are not allowed anymore before and after the =.
Are you sure? Here's what the Localisation Tutorial on the wiki says:
Any whitespace after or before "=" is included in the key or string, so "title =Category" related title will give an unknown key error if you are looking for the "title" key, since it is the "title " key.
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.17.66] Locale entries starting with a space are ignored.

Post by Rseding91 »

Thanks for the report however no they aren't:
Capture.PNG
Capture.PNG (24.15 KiB) Viewed 1063 times
If you want to get ahold of me I'm almost always on Discord.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: [0.17.66] Locale entries starting with a space are ignored.

Post by eradicator »

Rseding91 wrote:
Mon Sep 09, 2019 12:32 am
Thanks for the report however no they aren't:

Capture.PNG
Odd. Can't reproduce it anymore. Thanks for checking it out, and sorry for the fuss.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Post Reply

Return to “Not a bug”