configobj tabs vs. spaces vs indenting

33 views
Skip to first unread message

vince

unread,
Nov 12, 2020, 9:50:27 PM11/12/20
to weewx-user
I saw a report today claiming that it is possible to confuse the configobj parsing of weewx.conf if the user has strange indentations or combinations of tabs+spaces etc.

This doesn't match my recollection.  I thought that for weewx purposes that the basic config parser just needs the right hierchy of bracketed sections and subsections, and how the user does whitespace or indenting doesn't matter at all.

Are there any known limitations or bugs related to the config parser getting confused if the user has oddly formatted multi-level sections+subsections in weewx.conf ?

Tom Keffer

unread,
Nov 13, 2020, 7:32:09 AM11/13/20
to weewx-user
Whitespace doesn't matter. The parser does a .strip() to every line before parsing.

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/7341b0e7-ca6f-4904-a309-bca30a6467e0n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages