Fossil SCM
test-markdown-render and test-wiki-render command don't require to be inside a checkout.
Commit
1ba3c91994bbfd3afe3195828dd54bbc5d7619dc325e9fa619b21af56f5eddf0
Parent
9e67b8ab2333245…
2 files changed
-1
-1
-1
| --- src/wiki.c | ||
| +++ src/wiki.c | ||
| @@ -1425,11 +1425,10 @@ | ||
| 1425 | 1425 | ** Render markdown wiki from FILE to stdout. |
| 1426 | 1426 | ** |
| 1427 | 1427 | */ |
| 1428 | 1428 | void test_markdown_render(void){ |
| 1429 | 1429 | Blob in, out; |
| 1430 | - db_find_and_open_repository(0,0); | |
| 1431 | 1430 | verify_all_options(); |
| 1432 | 1431 | if( g.argc!=3 ) usage("FILE"); |
| 1433 | 1432 | blob_zero(&out); |
| 1434 | 1433 | blob_read_from_file(&in, g.argv[2]); |
| 1435 | 1434 | markdown_to_html(&in, 0, &out); |
| 1436 | 1435 |
| --- src/wiki.c | |
| +++ src/wiki.c | |
| @@ -1425,11 +1425,10 @@ | |
| 1425 | ** Render markdown wiki from FILE to stdout. |
| 1426 | ** |
| 1427 | */ |
| 1428 | void test_markdown_render(void){ |
| 1429 | Blob in, out; |
| 1430 | db_find_and_open_repository(0,0); |
| 1431 | verify_all_options(); |
| 1432 | if( g.argc!=3 ) usage("FILE"); |
| 1433 | blob_zero(&out); |
| 1434 | blob_read_from_file(&in, g.argv[2]); |
| 1435 | markdown_to_html(&in, 0, &out); |
| 1436 |
| --- src/wiki.c | |
| +++ src/wiki.c | |
| @@ -1425,11 +1425,10 @@ | |
| 1425 | ** Render markdown wiki from FILE to stdout. |
| 1426 | ** |
| 1427 | */ |
| 1428 | void test_markdown_render(void){ |
| 1429 | Blob in, out; |
| 1430 | verify_all_options(); |
| 1431 | if( g.argc!=3 ) usage("FILE"); |
| 1432 | blob_zero(&out); |
| 1433 | blob_read_from_file(&in, g.argv[2]); |
| 1434 | markdown_to_html(&in, 0, &out); |
| 1435 |
-1
| --- src/wikiformat.c | ||
| +++ src/wikiformat.c | ||
| @@ -1738,11 +1738,10 @@ | ||
| 1738 | 1738 | if( find_option("htmlonly",0,0)!=0 ) flags |= WIKI_HTMLONLY; |
| 1739 | 1739 | if( find_option("linksonly",0,0)!=0 ) flags |= WIKI_LINKSONLY; |
| 1740 | 1740 | if( find_option("nobadlinks",0,0)!=0 ) flags |= WIKI_NOBADLINKS; |
| 1741 | 1741 | if( find_option("inline",0,0)!=0 ) flags |= WIKI_INLINE; |
| 1742 | 1742 | if( find_option("noblock",0,0)!=0 ) flags |= WIKI_NOBLOCK; |
| 1743 | - db_find_and_open_repository(0,0); | |
| 1744 | 1743 | verify_all_options(); |
| 1745 | 1744 | if( g.argc!=3 ) usage("FILE"); |
| 1746 | 1745 | blob_zero(&out); |
| 1747 | 1746 | blob_read_from_file(&in, g.argv[2]); |
| 1748 | 1747 | wiki_convert(&in, &out, flags); |
| 1749 | 1748 |
| --- src/wikiformat.c | |
| +++ src/wikiformat.c | |
| @@ -1738,11 +1738,10 @@ | |
| 1738 | if( find_option("htmlonly",0,0)!=0 ) flags |= WIKI_HTMLONLY; |
| 1739 | if( find_option("linksonly",0,0)!=0 ) flags |= WIKI_LINKSONLY; |
| 1740 | if( find_option("nobadlinks",0,0)!=0 ) flags |= WIKI_NOBADLINKS; |
| 1741 | if( find_option("inline",0,0)!=0 ) flags |= WIKI_INLINE; |
| 1742 | if( find_option("noblock",0,0)!=0 ) flags |= WIKI_NOBLOCK; |
| 1743 | db_find_and_open_repository(0,0); |
| 1744 | verify_all_options(); |
| 1745 | if( g.argc!=3 ) usage("FILE"); |
| 1746 | blob_zero(&out); |
| 1747 | blob_read_from_file(&in, g.argv[2]); |
| 1748 | wiki_convert(&in, &out, flags); |
| 1749 |
| --- src/wikiformat.c | |
| +++ src/wikiformat.c | |
| @@ -1738,11 +1738,10 @@ | |
| 1738 | if( find_option("htmlonly",0,0)!=0 ) flags |= WIKI_HTMLONLY; |
| 1739 | if( find_option("linksonly",0,0)!=0 ) flags |= WIKI_LINKSONLY; |
| 1740 | if( find_option("nobadlinks",0,0)!=0 ) flags |= WIKI_NOBADLINKS; |
| 1741 | if( find_option("inline",0,0)!=0 ) flags |= WIKI_INLINE; |
| 1742 | if( find_option("noblock",0,0)!=0 ) flags |= WIKI_NOBLOCK; |
| 1743 | verify_all_options(); |
| 1744 | if( g.argc!=3 ) usage("FILE"); |
| 1745 | blob_zero(&out); |
| 1746 | blob_read_from_file(&in, g.argv[2]); |
| 1747 | wiki_convert(&in, &out, flags); |
| 1748 |