summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-01-27 19:15:13 +0100
committerAraq <rumpf_a@web.de>2013-01-27 19:15:13 +0100
commit07585088955c1fe8fb815c40409ed9f5d66fd446 (patch)
tree0179ff01c39469a61cdc2644ba5d9cc3b29181e8 /lib/pure
parent0e1b67cfff7f9e7352439888e06e2c255599e193 (diff)
downloadNim-07585088955c1fe8fb815c40409ed9f5d66fd446.tar.gz
bugfix: typeinfo.extendSeq
Diffstat (limited to 'lib/pure')
-rwxr-xr-xlib/pure/htmlparser.nim6
-rwxr-xr-xlib/pure/marshal.nim2
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/pure/htmlparser.nim b/lib/pure/htmlparser.nim
index 4136ecf57..ad952fc41 100755
--- a/lib/pure/htmlparser.nim
+++ b/lib/pure/htmlparser.nim
@@ -123,7 +123,7 @@ type
     tagVar         ## the HTML ``var`` element
 
 const
-  tagStrs = [
+  tagToStr* = [
     "a", "abbr", "acronym", "address", "applet", "area", 
     "b", "base", "basefont", "bdo", "big", "blockquote", "body", 
     "br", "button", "caption", "center", "cite", "code", 
@@ -243,13 +243,13 @@ proc binaryStrSearch(x: openarray[string], y: string): int =
 proc htmlTag*(n: PXmlNode): THtmlTag = 
   ## gets `n`'s tag as a ``THtmlTag``.
   if n.clientData == 0:
-    n.clientData = binaryStrSearch(tagStrs, n.tag)+1
+    n.clientData = binaryStrSearch(tagToStr, n.tag)+1
   result = THtmlTag(n.clientData)
 
 proc htmlTag*(s: string): THtmlTag =
   ## converts `s` to a ``THtmlTag``. If `s` is no HTML tag, ``tagUnknown`` is
   ## returned.
-  result = THtmlTag(binaryStrSearch(tagStrs, s.toLower)+1)
+  result = THtmlTag(binaryStrSearch(tagToStr, s.toLower)+1)
 
 proc entityToUtf8*(entity: string): string = 
   ## converts an HTML entity name like ``&Uuml;`` to its UTF-8 equivalent.
diff --git a/lib/pure/marshal.nim b/lib/pure/marshal.nim
index bffc4ebb6..f52b554cc 100755
--- a/lib/pure/marshal.nim
+++ b/lib/pure/marshal.nim
@@ -1,7 +1,7 @@
 #

 #

 #            Nimrod's Runtime Library

-#        (c) Copyright 2012 Andreas Rumpf

+#        (c) Copyright 2013 Andreas Rumpf

 #

 #    See the file "copying.txt", included in this

 #    distribution, for details about the copyright.