Commit c501c891b9884bb135ccd4b3f33a27c09a531f80

Martin Mitas 2020-07-30T10:13:05

Fix spelling of "than" in many occurances. I often spell it errorneously as "then". Doing this mistake way too often when typing fast.

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4148dd0..74255ff 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -58,7 +58,7 @@ Fixes:
 New features:
 
  * With `MD_FLAG_UNDERLINE`, spans enclosed in underscore (`_foo_`) are seen
-   as underline (`MD_SPAN_UNDERLINE`) rather then an ordinary emphasis or
+   as underline (`MD_SPAN_UNDERLINE`) rather than an ordinary emphasis or
    strong emphasis.
 
 Changes:
@@ -159,7 +159,7 @@ Changes:
 Fixes:
 
  * [#94](https://github.com/mity/md4c/issues/94):
-   `md_build_ref_def_hashtable()`: Do not allocate more memory then strictly
+   `md_build_ref_def_hashtable()`: Do not allocate more memory than strictly
    needed.
 
  * [#95](https://github.com/mity/md4c/issues/95):
diff --git a/src/md4c.c b/src/md4c.c
index 9fbc715..4aa5b89 100644
--- a/src/md4c.c
+++ b/src/md4c.c
@@ -2725,7 +2725,7 @@ md_build_mark_char_map(MD_CTX* ctx)
     }
 }
 
-/* We limit code span marks to lower then 32 backticks. This solves the
+/* We limit code span marks to lower than 32 backticks. This solves the
  * pathologic case of too many openers, each of different length: Their
  * resolving would be then O(n^2). */
 #define CODESPAN_MARK_MAXLEN    32
@@ -3444,7 +3444,7 @@ md_resolve_links(MD_CTX* ctx, const MD_LINE* lines, int n_lines)
 
             is_link = TRUE;
 
-            /* We don't allow destination to be longer then 100 characters.
+            /* We don't allow destination to be longer than 100 characters.
              * Lets scan to see whether there is '|'. (If not then the whole
              * wiki-link has to be below the 100 characters.) */
             delim_index = opener_index + 1;
@@ -5808,7 +5808,7 @@ md_analyze_line(MD_CTX* ctx, OFF beg, OFF* p_end,
     #if 1
             /* This is 2nd half of the hack. If the flag is set (that is there
              * were 2nd blank line at the start of the list item) and we would also
-             * belonging to such list item, then interrupt the list. */
+             * belonging to such list item, than interrupt the list. */
             ctx->last_line_has_list_loosening_effect = FALSE;
             if(ctx->last_list_item_starts_with_two_blank_lines) {
                 if(n_parents > 0  &&  ctx->containers[n_parents-1].ch != _T('>')  &&
diff --git a/test/underline.txt b/test/underline.txt
index 35e80b6..289e97f 100644
--- a/test/underline.txt
+++ b/test/underline.txt
@@ -2,7 +2,7 @@
 # Underline
 
 With the flag `MD_FLAG_UNDERLINE`, MD4C sees underscore `_` rather as a mark
-denoting an underlined span rather then an ordinary emphasis (or a strong
+denoting an underlined span rather than an ordinary emphasis (or a strong
 emphasis).
 
 ```````````````````````````````` example
diff --git a/test/wiki-links.txt b/test/wiki-links.txt
index c8afe71..00d394e 100644
--- a/test/wiki-links.txt
+++ b/test/wiki-links.txt
@@ -115,7 +115,7 @@ bar
 baz</x-wikilink></p>
 ````````````````````````````````
 
-Wiki-links have higher priority then links.
+Wiki-links have higher priority than links.
 
 ```````````````````````````````` example
 [[foo]](foo.jpg)