-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
The -m
minify option should remove blank lines
#33
Labels
enhancement
New feature or request
Comments
Prototype for a fix: if remove_blank_lines:
# Remove any line that is just whitespace
final = "\n".join(line for line in final.splitlines() if line.strip()) |
I'm going to leave the Python library version stable and add a new |
This is much more pleasing now: curl -s 'https://apnews.com/article/trump-federal-employees-firings-a85d1aaf1088e050d39dcf7e3664bb9f' | \
strip-tags -m Partial output:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently it ends up with a LOT of lines that are just whitespace:
Output includes:
Replacing space character with . to make the whitespace visible gives:
The text was updated successfully, but these errors were encountered: