end: header #1948
Replies: 5 comments 3 replies
-
Is this a valid example?
the header
|
Beta Was this translation helpful? Give feedback.
-
Explicit Caption ContinuationIs there an ambiguity in this code:
Consider:
The You can argue that only caption of basic type can be used in caption line for foo, eg |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
VecSS = Vec<StringOrSection> // header value, or the condition portion of conditional header
|
Beta Was this translation helpful? Give feedback.
-
can we try to remove
Not liking it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Note: I prefer
@
andVecSS
over this discussion.We have a end section syntax:
Because of
-- end:
we know thatfoo
is a "parent section" andbar
is its child. We have a similar problem for complex section headers. We can useend: <header-name>
to match-- end: <section-name>
syntax:Here we have passed
bar
tofoo
not as "children", but as header/argumentsidebar
.We can do this for caption as well:
Here we have used
caption
as the header name. Ifcaption
is the header name, we can say-- foo:
line must not contain any data, but we can leave it as is also.vs
I like latter, our
fastn fmt
should generate this. Should we accept former or should former be error? Ambivalent. Generally when ambivalent prefer stricter is my approach, let's see.After
end: <header-line>
there must be no line gap, else it will trigger switch to body as it is our current behaviour.Removing
-- <section-name>.<header-name>
syntaxWe currently allow complex header using this syntax:
This syntax messes with the order of headers (sometimes that is important, and moves them below the body etc. I am not a fan of this syntax, and think we should deprecate / remove it.
Beta Was this translation helpful? Give feedback.
All reactions