summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/misc.c b/misc.c
index 3f2483c..8a426f2 100644
--- a/misc.c
+++ b/misc.c
@@ -113,7 +113,7 @@ static int compare_wordlists_literally(word *a, word *b) {
return (a->type < b->type ? -1 : +1); /* FIXME? */
t = a->type;
if ((t != word_Normal && t != word_Code &&
- t != word_WeakCode && t != word_Emph) ||
+ t != word_WeakCode && t != word_Emph && t != word_Strong) ||
a->alt || b->alt) {
int c;
if (a->text && b->text) {
@@ -326,12 +326,14 @@ wrappedline *wrap_para(word *text, int width, int subsequentwidth,
wrapwords[nwords].end = text->next;
if (text->next && (text->next->type == word_WhiteSpace ||
text->next->type == word_EmphSpace ||
+ text->next->type == word_StrongSpace ||
text->breaks))
break;
text = text->next;
}
if (text && text->next && (text->next->type == word_WhiteSpace ||
- text->next->type == word_EmphSpace)) {
+ text->next->type == word_EmphSpace ||
+ text->next->type == word_StrongSpace)) {
wrapwords[nwords].spacewidth = widthfn(ctx, text->next);
text = text->next;
} else {