Fossil SCM
Whitespace style fix
Commit
358f7d80c28cf352de456c1aa48719f79f3050a5e91bf31a8992bfe28645d793
Parent
0e83ca88ce8c213…
1 file changed
+2
-4
+2
-4
| --- src/style.c | ||
| +++ src/style.c | ||
| @@ -590,12 +590,11 @@ | ||
| 590 | 590 | ** block quotes made in forum posts, leaving other Markdown quotes |
| 591 | 591 | ** alone. Because feature class "forum" groups /forummain, /forumpost, |
| 592 | 592 | ** and /forume2, it works across all renderings of Markdown to HTML |
| 593 | 593 | ** within the Fossil forum feature. |
| 594 | 594 | */ |
| 595 | -static const char* feature_from_page_path(const char *zPath) | |
| 596 | -{ | |
| 595 | +static const char* feature_from_page_path(const char *zPath){ | |
| 597 | 596 | const char* zSlash = strchr(zPath, '/'); |
| 598 | 597 | if (zSlash) { |
| 599 | 598 | return fossil_strndup(zPath, zSlash - zPath); |
| 600 | 599 | } else { |
| 601 | 600 | return zPath; |
| @@ -607,12 +606,11 @@ | ||
| 607 | 606 | ** set by feature_from_page_path(). We do not call this from |
| 608 | 607 | ** style_init_th1_vars() because that uses Th_MaybeStore() instead to |
| 609 | 608 | ** allow webpage implementations to call this before style_header() |
| 610 | 609 | ** to override that "maybe" default with something better. |
| 611 | 610 | */ |
| 612 | -void style_set_current_feature(const char* zFeature) | |
| 613 | -{ | |
| 611 | +void style_set_current_feature(const char* zFeature){ | |
| 614 | 612 | Th_Store("current_feature", zFeature); |
| 615 | 613 | } |
| 616 | 614 | |
| 617 | 615 | /* |
| 618 | 616 | ** Initialize all the default TH1 variables |
| 619 | 617 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -590,12 +590,11 @@ | |
| 590 | ** block quotes made in forum posts, leaving other Markdown quotes |
| 591 | ** alone. Because feature class "forum" groups /forummain, /forumpost, |
| 592 | ** and /forume2, it works across all renderings of Markdown to HTML |
| 593 | ** within the Fossil forum feature. |
| 594 | */ |
| 595 | static const char* feature_from_page_path(const char *zPath) |
| 596 | { |
| 597 | const char* zSlash = strchr(zPath, '/'); |
| 598 | if (zSlash) { |
| 599 | return fossil_strndup(zPath, zSlash - zPath); |
| 600 | } else { |
| 601 | return zPath; |
| @@ -607,12 +606,11 @@ | |
| 607 | ** set by feature_from_page_path(). We do not call this from |
| 608 | ** style_init_th1_vars() because that uses Th_MaybeStore() instead to |
| 609 | ** allow webpage implementations to call this before style_header() |
| 610 | ** to override that "maybe" default with something better. |
| 611 | */ |
| 612 | void style_set_current_feature(const char* zFeature) |
| 613 | { |
| 614 | Th_Store("current_feature", zFeature); |
| 615 | } |
| 616 | |
| 617 | /* |
| 618 | ** Initialize all the default TH1 variables |
| 619 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -590,12 +590,11 @@ | |
| 590 | ** block quotes made in forum posts, leaving other Markdown quotes |
| 591 | ** alone. Because feature class "forum" groups /forummain, /forumpost, |
| 592 | ** and /forume2, it works across all renderings of Markdown to HTML |
| 593 | ** within the Fossil forum feature. |
| 594 | */ |
| 595 | static const char* feature_from_page_path(const char *zPath){ |
| 596 | const char* zSlash = strchr(zPath, '/'); |
| 597 | if (zSlash) { |
| 598 | return fossil_strndup(zPath, zSlash - zPath); |
| 599 | } else { |
| 600 | return zPath; |
| @@ -607,12 +606,11 @@ | |
| 606 | ** set by feature_from_page_path(). We do not call this from |
| 607 | ** style_init_th1_vars() because that uses Th_MaybeStore() instead to |
| 608 | ** allow webpage implementations to call this before style_header() |
| 609 | ** to override that "maybe" default with something better. |
| 610 | */ |
| 611 | void style_set_current_feature(const char* zFeature){ |
| 612 | Th_Store("current_feature", zFeature); |
| 613 | } |
| 614 | |
| 615 | /* |
| 616 | ** Initialize all the default TH1 variables |
| 617 |