You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow for a language tag to be passed to the program with a -l, --lang tag that will update any converted HTML's lang tag to the passed language. For example:
./textml.py french.txt --lang fr would set <HTML lang="fr"> in the root <html> element.
A way to implement this could be to add a new option to argparse to accept the -l, --lang tag and pass the value to each convert function to be generated in the final HTML file function write_html_content()
If no language is provided default to en-CA using argparse's default value
The text was updated successfully, but these errors were encountered:
Allow for a language tag to be passed to the program with a
-l,--langtag that will update any converted HTML's lang tag to the passed language. For example:./textml.py french.txt --lang frwould set<HTML lang="fr">in the root<html>element.A way to implement this could be to add a new option to argparse to accept the
-l,--langtag and pass the value to each convert function to be generated in the final HTML file functionwrite_html_content()If no language is provided default to
en-CAusing argparse's default valueThe text was updated successfully, but these errors were encountered: