Fix htmlgen html lang (#12668) [backport]

* Fix HTMLGen enable lang on html tag
This commit is contained in:
Juan Carlos
2019-11-15 16:23:03 -03:00
committed by Andreas Rumpf
parent 83b7656c0e
commit 9c46526cfa
2 changed files with 2 additions and 2 deletions

View File

@@ -53,7 +53,7 @@
- `htmlgen` adds [MathML](https://wikipedia.org/wiki/MathML) support
(ISO 40314).
- `macros.eqIdent` is now invariant to export markers and backtick quotes.
- `htmlgen.html` allows `lang` on the `<html>` tag and common valid attributes.
## Language additions

View File

@@ -321,7 +321,7 @@ macro header*(e: varargs[untyped]): untyped =
macro html*(e: varargs[untyped]): untyped =
## generates the HTML ``html`` element.
result = xmlCheckedTag(e, "html", "xmlns", "")
result = xmlCheckedTag(e, "html", "xmlns" & commonAttr, "")
macro hr*(): untyped =
## generates the HTML ``hr`` element.