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

Improve: Add an optional -l, --lang which indicates the language to use on the root <html> element. #6

Closed
Qiwen-Yu opened this issue Oct 3, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Qiwen-Yu
Copy link
Owner

Qiwen-Yu commented Oct 3, 2021

Issue Description

Add an optional -l, --lang, and/or \l flag, which indicates the language to use when generating the lang attribute on the root element. For example, --lang fr would mean that the HTML documents are in French, and would include , while -l pt-BR would mean the text is using Brazilian Portuguese: .
By default, use en-CA for Canadian English.

Location

@click.option('-s', '--stylesheet', required=False, default='', help='URL of a CSS stylesheet')

doc.attr(lang='en')

@Qiwen-Yu Qiwen-Yu added the enhancement New feature or request label Oct 3, 2021
@Qiwen-Yu Qiwen-Yu self-assigned this Oct 3, 2021
@Qiwen-Yu Qiwen-Yu closed this as completed Oct 4, 2021
@Qiwen-Yu
Copy link
Owner Author

Qiwen-Yu commented Oct 4, 2021

This issue was fixed: 9d855d4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant