Skip to content

Commit 6b24f5b

Browse files
committed
Set max line length for code examples to 60
1 parent 3d7a001 commit 6b24f5b

File tree

10 files changed

+10
-18
lines changed

10 files changed

+10
-18
lines changed

.prettierrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
{
1212
"files": "*.md",
1313
"options": {
14-
"printWidth": 58
14+
"printWidth": 60
1515
}
1616
}
1717
]

content/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const generate = (lang) => {
4545
body: [
4646
[
4747
{
48-
margin: [30, 5, 30, 5],
48+
margin: [30, 5, 10, 5],
4949
text,
5050
preserveLeadingSpaces: true,
5151
},

content/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ module.exports = {
8686
code: {
8787
border: false,
8888
layout: 'noBorders',
89-
fontSize: 11,
89+
fontSize: 10.2,
9090
color: '#555',
9191
fillColor: '#eee',
9292
font: 'Mono',

content/cz/3-2-Structs.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,7 @@ void printProducts(std::vector<Product> items) {
280280
}
281281

282282
int main() {
283-
std::map<std::string, std::vector<Product>> purchase
284-
{
283+
std::map<std::string, std::vector<Product>> purchase {
285284
{ "Electronics", {
286285
{ "Laptop", 1500 },
287286
{ "Keyboard", 100 },

content/en/2-5-Procedure.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
```js
44
// Functions
55

6-
const colorer = (s, color) =>
7-
`\x1b[3${color}m${s}\x1b[0m`;
6+
const colorer = (s, color) => `\x1b[3${color}m${s}\x1b[0m`;
87

98
const colorize = (name) => {
109
let res = '';

content/en/2-6-Function.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ const add = (a, b) => a + b;
9494

9595
console.log('Add numbers: 5 + 2 = ' + add(5, 2));
9696
console.log('Add floats: 5.1 + 2.3 = ' + add(5.1, 2.3));
97-
console.log(
98-
`Concatenate: '5' + '2' = '${add('5', '2')}'`
99-
);
97+
console.log(`Concatenate: '5' + '2' = '${add('5', '2')}'`);
10098
console.log('Subtraction: 5 + (-2) = ' + add(5, -2));
10199
```

content/en/3-2-Structs.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,7 @@ void printProducts(std::vector<Product> items) {
280280
}
281281

282282
int main() {
283-
std::map<std::string, std::vector<Product>> purchase
284-
{
283+
std::map<std::string, std::vector<Product>> purchase {
285284
{ "Electronics", {
286285
{ "Laptop", 1500 },
287286
{ "Keyboard", 100 },

content/ru/2-5-Procedure.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
```
2424

2525
```js
26-
const colorer = (s, color) =>
27-
`\x1b[3${color}m${s}\x1b[0m`;
26+
const colorer = (s, color) => `\x1b[3${color}m${s}\x1b[0m`;
2827

2928
const colorize = (name) => {
3029
let res = '';

content/ru/3-2-Structs.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,7 @@ void printProducts(std::vector<Product> items) {
280280
}
281281

282282
int main() {
283-
std::map<std::string, std::vector<Product>> purchase
284-
{
283+
std::map<std::string, std::vector<Product>> purchase {
285284
{ "Electronics", {
286285
{ "Laptop", 1500 },
287286
{ "Keyboard", 100 },

content/uk/3-2-Structs.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,7 @@ void printProducts(std::vector<Product> items) {
280280
}
281281

282282
int main() {
283-
std::map<std::string, std::vector<Product>> purchase
284-
{
283+
std::map<std::string, std::vector<Product>> purchase {
285284
{ "Electronics", {
286285
{ "Laptop", 1500 },
287286
{ "Keyboard", 100 },

0 commit comments

Comments
 (0)