google / textfsm

Python module for parsing semi-structured text into python tables.
Apache License 2.0
1.11k stars 171 forks source link

Wiki Documentation Error #51

Closed matthewjchou closed 5 years ago

matthewjchou commented 5 years ago

Under State Definitions in TextFSM on the wiki, it states that a white space followed by a carat is necessary for rules, but I believe it's actually 2 spaces. 1 space gave me the error of "missing white space or carat before rule". Should clarify that it's 2.

harro commented 5 years ago

Interesting. I think that might actually be a bug (i.e. typo)? But the convention of two spaces is so well established it's probably better to update the documentation as you suggest.

harro commented 5 years ago

Fixed with pull #56 it can now be 1 or 2 spaces.