Skip to content

Commit 76b5f11

Browse files
committed
Add Prettier and format code
1 parent 6e8b5ee commit 76b5f11

File tree

2 files changed

+22
-18
lines changed

2 files changed

+22
-18
lines changed

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"tabWidth": 4,
3+
"printWidth": 80
4+
}

templates/index.html

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<title>Text Counter Application Using Flask</title>
5-
</head>
6-
<body>
7-
<h1>Text Counter Application Using Flask</h1>
8-
<form action="{{ url_for('calculate_text_counter') }}" method="post">
9-
<!--form to calculate text count-->
10-
<textarea name="text_content" rows="10" cols="80">
3+
<head>
4+
<title>Text Counter Application Using Flask</title>
5+
</head>
6+
<body>
7+
<h1>Text Counter Application Using Flask</h1>
8+
<form action="{{ url_for('calculate_text_counter') }}" method="post">
9+
<!--form to calculate text count-->
10+
<textarea name="text_content" rows="10" cols="80">
1111
{{ text_content }}</textarea
12-
><br />
13-
<input type="submit" value="Calculate Text Count" />
14-
</form>
15-
<div id="output">
16-
<!--text output to see the calculated number of characters, words and lines in entered text box area-->
17-
Characters: {{ characters | comma_separator }}<br />
18-
Words: {{ words | comma_separator }}<br />
19-
Lines: {{ lines | comma_separator }}
20-
</div>
21-
</body>
12+
><br />
13+
<input type="submit" value="Calculate Text Count" />
14+
</form>
15+
<div id="output">
16+
<!--text output to see the calculated number of characters, words and lines in entered text box area-->
17+
Characters: {{ characters | comma_separator }}<br />
18+
Words: {{ words | comma_separator }}<br />
19+
Lines: {{ lines | comma_separator }}
20+
</div>
21+
</body>
2222
</html>

0 commit comments

Comments
 (0)