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

Line break and regex issue #5

Open
hussnainsheikh opened this issue Jun 29, 2021 · 1 comment
Open

Line break and regex issue #5

hussnainsheikh opened this issue Jun 29, 2021 · 1 comment

Comments

@hussnainsheikh
Copy link

hussnainsheikh commented Jun 29, 2021

Line break functionality is not working properly with plain text.

out_plaintext = out_plaintext.gsub("\n\n", "\f")
out_plaintext = out_plaintext.gsub("\n", "")
out_plaintext = out_plaintext.gsub("\f", "\n\n")

Regex to replace

%5B with "[",
%5D with "]",
%7B with "{"
%7D with "}"

out_html = out_html.gsub(/[%5D%5B%7D%7B]/, "%5B" => "[", "%5D" => "]", "%7B" => "{", "%7D" => "}")

is not working properly, it's removing capital D and Capital B from the HTML output. Thanks

@hussnainsheikh
Copy link
Author

Fixed with ❤️. #6

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