Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update IndexPage.csp Fixed indentation and remove excessive lines. #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

albaropereyra22
Copy link
Contributor

Fixed indentation and remove excessive lines.

Fixed indentation and remove excessive lines.
Copy link
Member

@marty1885 marty1885 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @albaropereyra22 Thanks for fixing our code style issues. I should have put more effort into them. Dang.

However, there's a thing I need you to change before I can merge it.

Comment on lines 105 to +112
<pre><code class="c++">using Callback = std::function&lt;void (const HttpResponsePtr &)&gt; ;

app().registerHandler("/", [](const HttpRequestPtr& req, Callback &&callback)
{
app().registerHandler("/", [](const HttpRequestPtr& req, Callback &&callback)
{
auto resp = HttpResponse::newHttpResponse();
resp->setBody("Hello World");
callback(resp);
});</code></pre>
});</code></pre>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@albaropereyra22 This lack of space is intended. These are C++ shown within a <pre> block. Which does not perform space collapsing. When added, theses indents will also show up in the web page.

Please revert the changes within pre blocks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants