From: Igor Zhbanov <i.zhbanov at samsung.com>
To: powertop@lists.01.org
Subject: Re: [Powertop] [PATCH v2 03/31] html-report: add title and div tags
Date: Mon, 18 Nov 2013 11:36:14 +0400 [thread overview]
Message-ID: <5289C36E.4050207@samsung.com> (raw)
In-Reply-To: 1384561758-21516-4-git-send-email-alexandra.yates@linux.intel.com
[-- Attachment #1: Type: text/plain, Size: 1088 bytes --]
Hi Alexandra,
Alexandra Yates wrote:
...
> +void
> +report_formatter_html::add_div(struct tag_attr * div_attr)
> +{
> + std::string empty="";
> + std::string tmp_str;
> +
> + if (div_attr->css_class == empty && div_attr->css_id == empty)
> + add_exact("<div>\n");
> +
> + else if (div_attr->css_class == empty && div_attr->css_id != empty)
> + addf_exact("<div id=\"%s\">\n", div_attr->css_id);
> +
> + else if (div_attr->css_class != empty && div_attr->css_id == empty)
> + addf_exact("<div class=\"%s\">\n", div_attr->css_class);
> +
> + else if (div_attr->css_class != empty && div_attr->css_id != empty)
> + addf_exact("<div class=\"%s\" id=\"%s\">\n", div_attr->css_class, div_attr->css_id);
Please use indentation like:
if (something)
do_something();
else if (other)
do_something else();
--
Best regards,
Igor Zhbanov,
Expert Software Engineer,
phone: +7 (495) 797 25 00 ext 3981
e-mail: i.zhbanov(a)samsung.com
Mobile group, Moscow R&D center, Samsung Electronics
12 Dvintsev street, building 1
127018, Moscow, Russian Federation
next reply other threads:[~2013-11-18 7:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-18 7:36 Igor Zhbanov [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-11-16 0:28 [Powertop] [PATCH v2 03/31] html-report: add title and div tags Alexandra Yates
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5289C36E.4050207@samsung.com \
--to=powertop@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.