Skip to content

Commit 346a4d0

Browse files
#32: add a few more newlines for HTML readability
1 parent cb97304 commit 346a4d0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

web.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ void handleConf() {
103103
auto &page = System::web_page;
104104

105105
pushHeader(F("Yeelight Button Configuration"));
106-
page += F("<p>[&nbsp;<a href=\"/conf\">rescan</a>&nbsp;] [&nbsp;<a href=\"/save\">unlink all</a>&nbsp;]</p>");
106+
page += F("<p>[&nbsp;<a href=\"/conf\">rescan</a>&nbsp;] [&nbsp;<a href=\"/save\">unlink all</a>&nbsp;]</p>\n");
107107
page += F("<p><i>Scanning ");
108108
page += System::getNetworkName();
109-
page += F(" for Yeelight devices...</i></p>");
110-
page += F("<p><i>Hint: turn all bulbs off, except the desired ones, in order to identify them easily.</i></p>");
109+
page += F(" for Yeelight devices...</i></p>\n");
110+
page += F("<p><i>Hint: turn all bulbs off, except the desired ones, in order to identify them easily.</i></p>\n");
111111

112112
// Use chunked transfer to show scan in progress
113113
System::web_server.setContentLength(CONTENT_LENGTH_UNKNOWN);
@@ -118,10 +118,10 @@ void handleConf() {
118118
page += F(" bulb");
119119
if (num_bulbs != 1)
120120
page += 's';
121-
page += F(". Select bulbs to link from the list below.</p>");
122-
page += F("<form action=\"/save\">");
121+
page += F(". Select bulbs to link from the list below.</p>\n");
122+
page += F("<form action=\"/save\">\n");
123123
bulb_manager.printConfHTML(page);
124-
page += F("<p><input type=\"submit\" value=\"Link\"/></p></form>");
124+
page += F("<p><input type=\"submit\" value=\"Link\"/></p>\n</form>\n");
125125
pushFooter();
126126
System::web_server.sendContent(page);
127127
System::web_server.sendContent("");

0 commit comments

Comments
 (0)