summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cr-style.c2
-rw-r--r--src/cr-tknzr.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cr-style.c b/src/cr-style.c
index 3233415..50e6006 100644
--- a/src/cr-style.c
+++ b/src/cr-style.c
@@ -1676,7 +1676,7 @@ set_prop_white_space_from_value (CRStyle * a_style, CRTerm * a_value)
a_style->white_space = WHITE_SPACE_NORMAL;
} else if (!strcmp (a_value->content.str->stryng->str,
"pre")) {
- a_style->font_weight = WHITE_SPACE_PRE;
+ a_style->white_space = WHITE_SPACE_PRE;
} else if (!strcmp (a_value->content.str->stryng->str,
"nowrap")) {
a_style->white_space = WHITE_SPACE_NOWRAP;
diff --git a/src/cr-tknzr.c b/src/cr-tknzr.c
index 6fc04a6..2d507f2 100644
--- a/src/cr-tknzr.c
+++ b/src/cr-tknzr.c
@@ -2381,7 +2381,7 @@ cr_tknzr_get_next_token (CRTknzr * a_this, CRToken ** a_tk)
next_bytes[0] = BYTE (input, 1, NULL);
next_bytes[1] = BYTE (input, 2, NULL);
next_bytes[2] = BYTE (input, 3, NULL);
- next_bytes[3] = BYTE (input, 3, NULL);
+ next_bytes[3] = BYTE (input, 4, NULL);
if (next_bytes[0] == 'e'
&& next_bytes[1] == 'm') {