-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix BOM portion of generated HTML files #95
Conversation
Also fixes BOM display as noted in #86. |
The extra slash is an escape character in python strings. Two slashes are required to represent one slash. Actual string being checked is ‘\n’ |
I know that. :-) When I write As @formatc1702 describes in his issue #86 recommendation, using YAML multiline strings is a better approach to obtain line breaks, that insert actual newline characters, and that converting
Actual newline characters in the input text is currently supported for all output (either converted to a space or to a proper line break for each output). |
I agree with @kvid on this one; if the YAML parser does not generate newlines with No need for an extra check here!
|
I will make the change b/c this is not my package, but I disagree.
|
Thanks.
It can be easily supported by adding the double quotes.
I agree on the last point. IMHO, this is an argument for better documentation (which we absolutely need to do), but not to deviate from the clearly defined YAML syntax. It may seem like a far-fetched corner case, but an example that comes to mind is somebody using a Windows path in the notes field |
Edit: This PR was merged in while I was writing my comment, but my comment is still valid. I hope @slightlynybbled is notified about my comment even if the PR was closed when merged in. @slightlynybbled I respect your opinion, and I fully agree that not everyone has full knowledge about YAML syntax (including myself). Please create a new issue where you suggest how to guide the user about line breaks and similar issues. Maybe some additions to README, tutorials, and/or examples? You'll find a lot of examples on yaml-multiline.info - please create a few examples for this project based on what you think the users might need, e.g. something like this:
|
No description provided.