Fossil SCM

Fix misspelled "--canonical" option on "fossil test-comment-format".

drh 2025-03-03 13:34 trunk
Commit 9813e6f85d5d51e48b0e30af7a3d7b6c613ea6a2a67519d7cc9d65a9d50a93ea
1 file changed +1 -1
+1 -1
--- src/comformat.c
+++ src/comformat.c
@@ -764,11 +764,11 @@
764764
char *zOrigText;
765765
int indent, width;
766766
int fromFile = find_option("file", 0, 0)!=0;
767767
int decode = find_option("decode", 0, 0)!=0;
768768
int flags = COMMENT_PRINT_NONE;
769
- if( find_option("original",0,0) ){
769
+ if( find_option("canonical",0,0) ){
770770
flags |= COMMENT_PRINT_CANONICAL;
771771
}
772772
if( find_option("trimcrlf", 0, 0) ){
773773
flags |= COMMENT_PRINT_TRIM_CRLF;
774774
}
775775
--- src/comformat.c
+++ src/comformat.c
@@ -764,11 +764,11 @@
764 char *zOrigText;
765 int indent, width;
766 int fromFile = find_option("file", 0, 0)!=0;
767 int decode = find_option("decode", 0, 0)!=0;
768 int flags = COMMENT_PRINT_NONE;
769 if( find_option("original",0,0) ){
770 flags |= COMMENT_PRINT_CANONICAL;
771 }
772 if( find_option("trimcrlf", 0, 0) ){
773 flags |= COMMENT_PRINT_TRIM_CRLF;
774 }
775
--- src/comformat.c
+++ src/comformat.c
@@ -764,11 +764,11 @@
764 char *zOrigText;
765 int indent, width;
766 int fromFile = find_option("file", 0, 0)!=0;
767 int decode = find_option("decode", 0, 0)!=0;
768 int flags = COMMENT_PRINT_NONE;
769 if( find_option("canonical",0,0) ){
770 flags |= COMMENT_PRINT_CANONICAL;
771 }
772 if( find_option("trimcrlf", 0, 0) ){
773 flags |= COMMENT_PRINT_TRIM_CRLF;
774 }
775

Keyboard Shortcuts

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