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

Org: Keep all newlines #951

Merged
merged 1 commit into from Apr 1, 2024
Merged

Org: Keep all newlines #951

merged 1 commit into from Apr 1, 2024

Conversation

Gusted
Copy link
Contributor

@Gusted Gusted commented Apr 1, 2024

Input
Generic text.

/Italicized/

*strong*

=Heading=

~Codeblock~

+StrikeTrough+

_Underlined_

Before

Screen Shot 2024-04-01 at 23 26 15

After

Screen Shot 2024-04-01 at 23 25 52

- Move the `*` operator to inside the capturing group so all characters
that match `\s` is preserved and not just the first character.
- Add tests.
- Resolves alecthomas#845
@alecthomas
Copy link
Owner

Nice find, thanks.

@alecthomas alecthomas merged commit e5c25d0 into alecthomas:master Apr 1, 2024
2 checks passed
@Gusted Gusted deleted the org-mode branch April 1, 2024 21:40
@Gusted
Copy link
Contributor Author

Gusted commented Apr 1, 2024

Thank you for your 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

Successfully merging this pull request may close these issues.

Org mode tokenizer removes newline
2 participants