Fossil SCM

Correct alignment of fts-search output

andygoth 2017-09-24 03:02 UTC andygoth-search-technote
Commit a6c7ce9db8d079d2ba6c8912cf4f160027f59224389e6f77b6ff69525623a5f6
1 file changed +5 -5
+5 -5
--- src/search.c
+++ src/search.c
@@ -1835,21 +1835,21 @@
18351835
search_rebuild_index();
18361836
}
18371837
18381838
/* Always show the status before ending */
18391839
for(i=0; i<count(aSetng); i++){
1840
- fossil_print("%-16s %s\n", aSetng[i].zName,
1840
+ fossil_print("%-17s %s\n", aSetng[i].zName,
18411841
db_get_boolean(aSetng[i].zSetting,0) ? "on" : "off");
18421842
}
1843
- fossil_print("%-16s %s\n", "Porter stemmer:",
1843
+ fossil_print("%-17s %s\n", "Porter stemmer:",
18441844
db_get_boolean("search-stemmer",0) ? "on" : "off");
18451845
if( search_index_exists() ){
1846
- fossil_print("%-16s enabled\n", "full-text index:");
1847
- fossil_print("%-16s %d\n", "documents:",
1846
+ fossil_print("%-17s enabled\n", "full-text index:");
1847
+ fossil_print("%-17s %d\n", "documents:",
18481848
db_int(0, "SELECT count(*) FROM ftsdocs"));
18491849
}else{
1850
- fossil_print("%-16s disabled\n", "full-text index:");
1850
+ fossil_print("%-17s disabled\n", "full-text index:");
18511851
}
18521852
db_end_transaction(0);
18531853
}
18541854
18551855
/*
18561856
--- src/search.c
+++ src/search.c
@@ -1835,21 +1835,21 @@
1835 search_rebuild_index();
1836 }
1837
1838 /* Always show the status before ending */
1839 for(i=0; i<count(aSetng); i++){
1840 fossil_print("%-16s %s\n", aSetng[i].zName,
1841 db_get_boolean(aSetng[i].zSetting,0) ? "on" : "off");
1842 }
1843 fossil_print("%-16s %s\n", "Porter stemmer:",
1844 db_get_boolean("search-stemmer",0) ? "on" : "off");
1845 if( search_index_exists() ){
1846 fossil_print("%-16s enabled\n", "full-text index:");
1847 fossil_print("%-16s %d\n", "documents:",
1848 db_int(0, "SELECT count(*) FROM ftsdocs"));
1849 }else{
1850 fossil_print("%-16s disabled\n", "full-text index:");
1851 }
1852 db_end_transaction(0);
1853 }
1854
1855 /*
1856
--- src/search.c
+++ src/search.c
@@ -1835,21 +1835,21 @@
1835 search_rebuild_index();
1836 }
1837
1838 /* Always show the status before ending */
1839 for(i=0; i<count(aSetng); i++){
1840 fossil_print("%-17s %s\n", aSetng[i].zName,
1841 db_get_boolean(aSetng[i].zSetting,0) ? "on" : "off");
1842 }
1843 fossil_print("%-17s %s\n", "Porter stemmer:",
1844 db_get_boolean("search-stemmer",0) ? "on" : "off");
1845 if( search_index_exists() ){
1846 fossil_print("%-17s enabled\n", "full-text index:");
1847 fossil_print("%-17s %d\n", "documents:",
1848 db_int(0, "SELECT count(*) FROM ftsdocs"));
1849 }else{
1850 fossil_print("%-17s disabled\n", "full-text index:");
1851 }
1852 db_end_transaction(0);
1853 }
1854
1855 /*
1856

Keyboard Shortcuts

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