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

How to create a FYSS_LITERAL scalar? #79

Open
yrashk opened this issue Apr 21, 2023 · 5 comments
Open

How to create a FYSS_LITERAL scalar? #79

yrashk opened this issue Apr 21, 2023 · 5 comments

Comments

@yrashk
Copy link
Contributor

yrashk commented Apr 21, 2023

I am finding a situation in which I'd prefer to have a literal scalar so that when I emit a document, these strings are emitted using multi-line syntax instead of quoted string with \ns. I couldn't find a way to do this yet.

Is this supported, and if it is not, is there interest in getting it supported? I'd be happy to contribute if necessary.

@pantoniou
Copy link
Owner

You're right, there are no style hints when creating a scalar.
What is missing is a method to alter the style of the created node an analogous of fy_event_get_node_style().

I'm making a note.

@yrashk
Copy link
Contributor Author

yrashk commented Apr 23, 2023 via email

@yrashk
Copy link
Contributor Author

yrashk commented Apr 23, 2023

As for the original issue, I am noticing that the inability to set this style leads to unquoted empty strings:

key:

which may sometimes be undesirable

@yrashk
Copy link
Contributor Author

yrashk commented Apr 24, 2023

It looks like #78 may be the implementation necessary for this.

@pantoniou
Copy link
Owner

As for the original issue, I am noticing that the inability to set this style leads to unquoted empty strings:

key:

which may sometimes be undesirable

Well, this is a bug actually...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants