Skip to content

Commit 5ff4d93

Browse files
committed
Include layer_id in line_end and line_start
1 parent 688b916 commit 5ff4d93

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ All of the options below default to an empty text which means no output is gener
9797
### Segment formatting
9898
`gwrite` uses `.format()` encoding which means that data elements must be encapsulated in `{}` brackets. This provides a particular syntax token which differs from between elements.
9999
For example every element except `layer_join` and `segment_join` accepts the value of `index`. You would encode that in the text as `{index:d}` the d denotes an integer value. If you need to have a `{` value in your text you would encode that as `{{` likewise you would encode a `}` as `}}`.
100-
- `layer_start`: Accepts `index` the current layer number and `layer_id` as vpype layer ID.
101-
- `layer_end`: Accepts `index` the current layer number and `layer_id` as vpype layer ID.
102-
- `line_start`: Accepts `index` the current line number.
103-
- `line_end`: Accepts `index` the current line number.
100+
- `layer_start`: Accepts `index` the current layer index starting from 0, `index1` the current layer number starting from 1, and `layer_id` as vpype layer ID.
101+
- `layer_end`: Accepts `index` the current layer index starting from 0, `index1` the current layer number starting from 1, and `layer_id` as vpype layer ID.
102+
- `line_start`: Accepts `index` the current line number starting from 0, `index1` the current line number starting from 1, and `layer_index`, `layer_index1`, and `layer_id` values for the current layer this line is within.
103+
- `line_end`: Accepts `index` the current line number starting from 0, `index1` the current line number starting from 1, and `layer_index`, `layer_index1`, and `layer_id` values for the current layer this line is within.
104104

105105
The segments accept a lot of values that may be useful statistics for various formats:
106106
* `index`: index of the particular coordinate pair. eg `{index:d}`

0 commit comments

Comments
 (0)