I am trying to configure line breaking for a config file that looks like the following (I'm using 4 spaces to indent some of the lines, but it isn't working in the preview). Only the first config and last end start at the beginning of a new line. All of the other lines have multiple spaces or tabs:
config firewall profile-protocol-options
set port 80
set port 8080
set port 443
set port 8000
set options allow-invalid-server-cert no-content-summary
set deep-scan enable
I want to break the event at the first "config" and the last "end". I do not want it to break before/after any config or end line that is preceded by one or more spaces.
I have tried the following at none of them break properly:
I'm feeling stupid tonight, so don't I don't want to get deep into the interaction of MUST_BREAK_AFTER and BREAK_ONLY_BEFORE. If everything is in one of these, you shouldn't need both. We can dig in later if it's needed?
The first ruleset is looking for words like 'config' which have somethig besides backslash or s before them. I think you want BREAK_ONLY_BEFORE = ^config
Does that work alone?