From 2720e657c239843de62a3157522c28cc82a648fb Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 7 Apr 2022 18:12:55 +0300 Subject: [PATCH] run `v fmt -w examples/web_crawler/web_crawler.v` --- examples/web_crawler/web_crawler.v | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/web_crawler/web_crawler.v b/examples/web_crawler/web_crawler.v index ea7d5098e6..8b1a8bd7ca 100644 --- a/examples/web_crawler/web_crawler.v +++ b/examples/web_crawler/web_crawler.v @@ -15,8 +15,12 @@ fn main() { // html.DocumentObjectModel.get_tag_by_attribute_value() retrieves all the tags in the document that has the given attribute name and value. tags := doc.get_tag_by_attribute_value('class', 'list_article_item') for tag in tags { - href := tag.children[1].children[0].children[0].children[0].attributes['href'] or { panic('key not found') } - title := tag.children[1].children[0].children[0].children[0].attributes['title'] or { panic('key not found') } + href := tag.children[1].children[0].children[0].children[0].attributes['href'] or { + panic('key not found') + } + title := tag.children[1].children[0].children[0].children[0].attributes['title'] or { + panic('key not found') + } println('href: $href') println('title: $title') println('')