Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cuelang.org: preprocessor strips author's shell line continuations from script blocks #3545

Open
jpluscplusm opened this issue Nov 1, 2024 · 0 comments
Labels

Comments

@jpluscplusm
Copy link
Collaborator

What page were you looking at?

n/a

What version of the site were you looking at?

cue-lang/cuelang.org@f0e0f0f

What did you do?

I placed the following on a test page, and invoked the preprocessor:

{{{with script "en" "test"}}}
echo foo \
  bar \
  baz
{{{end}}}

What did you expect?

That the processed page inside the hugo/ hierarchy would have the line continuations presented on the page, and (possibly) available via the copy-this-command button.

What did you see instead?

```text { title="TERMINAL" type="terminal" codeToCopy="ZWNobyBmb28gYmFyIGJheg==" }
$ echo foo bar baz
foo bar baz
```
jpluscplusm added a commit to jpluscplusm-forks/cue-lang.cue-by-example that referenced this issue Nov 1, 2024
This updates the GitLab CI guide in line with fixes proposed in
https://cuelang.org/cl/1203460.

The change was produced using cue-lang/cuelang.org's
_scripts/exportCueByExample for the bulk of the conversion, followed by
git-diff-driven manual edits to remove interleaved command output,
to replace fenced code blocks' languages where "text" is inappropriate,
and to re-add line continuations stripped from the page (as tracked in
cue-lang/cue#3545).

Fixes: cue-labs#39

Signed-off-by: Jonathan Matthews <[email protected]>
jpluscplusm added a commit to jpluscplusm-forks/cue-lang.cue-by-example that referenced this issue Nov 1, 2024
This updates the GitLab CI guide in line with fixes proposed in
https://cuelang.org/cl/1203460.

The change was produced using cue-lang/cuelang.org's
_scripts/exportCueByExample for the bulk of the conversion, followed by
git-diff-driven manual edits to remove interleaved command output,
to replace fenced code blocks' languages where "text" is inappropriate,
and to re-add line continuations stripped from the page (as tracked in
cue-lang/cue#3545).

Fixes: cue-labs#39

Signed-off-by: Jonathan Matthews <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
Development

No branches or pull requests

1 participant