diff options
Diffstat (limited to 'examples/htmltitle.nim')
-rw-r--r-- | examples/htmltitle.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/htmltitle.nim b/examples/htmltitle.nim index 7e66fabaa..96bfc7d91 100644 --- a/examples/htmltitle.nim +++ b/examples/htmltitle.nim @@ -15,11 +15,11 @@ open(x, s, filename) while true: x.next() case x.kind - of xmlElementStart: - if cmpIgnoreCase(x.elementName, "title") == 0: + of xmlElementStart: + if cmpIgnoreCase(x.elementName, "title") == 0: var title = "" x.next() # skip "<title>" - while x.kind == xmlCharData: + while x.kind == xmlCharData: title.add(x.charData) x.next() if x.kind == xmlElementEnd and cmpIgnoreCase(x.elementName, "title") == 0: @@ -27,7 +27,7 @@ while true: quit(0) # Success! else: echo(x.errorMsgExpected("/title")) - + of xmlEof: break # end of file reached else: discard # ignore other events |