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

html.nanorc corrupts lines containing emoji #388

Open
ghost opened this issue Feb 8, 2022 · 2 comments
Open

html.nanorc corrupts lines containing emoji #388

ghost opened this issue Feb 8, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 8, 2022

In this example, you can see that:
2020 becomes >202
</tr> becomes </tr>>

nano without html.nanorc:
Screenshot 2022-02-08 at 2 38 02 p m
with html.nanorc
Screenshot 2022-02-08 at 2 38 21 p m

Root cause seems to be the handling of emoji. I created a tr without one and it displays fine:
Screenshot 2022-02-08 at 2 42 12 p m
You can see in the image that the date isn't corrupted and no trailing ">" inserted.

Now that I've tasted syntax highlighting I can't go back. I hope this is fixable :) Thanks for the effort! Source code attached.
index.html.txt

@davidhcefx
Copy link
Contributor

That looks like a GNU Nano problem instead of a highlighting problem.
Anyway, what's your platform? I can't replicate on Ubuntu 18.04 with nano 6.2.

@ghost
Copy link
Author

ghost commented Jun 8, 2022

Apologies for the delay. I believe it was macOS I was on at the time.

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

1 participant