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

Doc: add nth-child in the list of pseudo classes for option --exclude-pseudoclasses #222

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ module.
--remove-internal-links PRESERVE_INTERNAL_LINKS
Remove links that start with a '#' like anchors.
--exclude-pseudoclasses
Pseudo classes like p:last-child', p:first-child, etc
Pseudo classes like p:last-child', p:first-child, :nth-child, etc
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make this change in __main__.py too? Line ~53.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I already did it.

--preserve-style-tags
Do not delete <style></style> tags from the html
document.
Expand Down
2 changes: 1 addition & 1 deletion premailer/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def main(args):
parser.add_argument(
"--exclude-pseudoclasses",
default=False,
help="Pseudo classes like p:last-child', p:first-child, etc",
help="Pseudo classes like p:last-child', p:first-child, :nth-child, etc",
action="store_true",
dest="exclude_pseudoclasses",
)
Expand Down