From 84982e5e1787d0b3c36ae185c5c75f7764543054 Mon Sep 17 00:00:00 2001 From: Arne Döring Date: Thu, 12 Apr 2018 13:54:49 +0200 Subject: fix deprecation warnings in asyncmacro and htmlgen (#7573) * fix deprecation warnings in asyncmacro and htmlgen * removed todo --- lib/pure/htmlgen.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/pure/htmlgen.nim') diff --git a/lib/pure/htmlgen.nim b/lib/pure/htmlgen.nim index e7562029a..55b02ea60 100644 --- a/lib/pure/htmlgen.nim +++ b/lib/pure/htmlgen.nim @@ -38,7 +38,8 @@ const proc getIdent(e: NimNode): string {.compileTime.} = case e.kind - of nnkIdent: result = normalize($e.ident) + of nnkIdent: + result = e.strVal.normalize of nnkAccQuoted: result = getIdent(e[0]) for i in 1 .. e.len-1: -- cgit 1.4.1-2-gfad0