Fossil SCM

Whitespace style fix

wyoung 2020-12-22 12:30 body-feature-class
Commit 358f7d80c28cf352de456c1aa48719f79f3050a5e91bf31a8992bfe28645d793
1 file changed +2 -4
+2 -4
--- src/style.c
+++ src/style.c
@@ -590,12 +590,11 @@
590590
** block quotes made in forum posts, leaving other Markdown quotes
591591
** alone. Because feature class "forum" groups /forummain, /forumpost,
592592
** and /forume2, it works across all renderings of Markdown to HTML
593593
** within the Fossil forum feature.
594594
*/
595
-static const char* feature_from_page_path(const char *zPath)
596
-{
595
+static const char* feature_from_page_path(const char *zPath){
597596
const char* zSlash = strchr(zPath, '/');
598597
if (zSlash) {
599598
return fossil_strndup(zPath, zSlash - zPath);
600599
} else {
601600
return zPath;
@@ -607,12 +606,11 @@
607606
** set by feature_from_page_path(). We do not call this from
608607
** style_init_th1_vars() because that uses Th_MaybeStore() instead to
609608
** allow webpage implementations to call this before style_header()
610609
** to override that "maybe" default with something better.
611610
*/
612
-void style_set_current_feature(const char* zFeature)
613
-{
611
+void style_set_current_feature(const char* zFeature){
614612
Th_Store("current_feature", zFeature);
615613
}
616614
617615
/*
618616
** Initialize all the default TH1 variables
619617
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button